How do I get the maximum value of strings like '1.2.5.4' and '1.2.5.3'?
<p>I have an array with strings comprising of numbers in a dotted notation as such:</p>

<pre><code>var arr = ['1.2.5.4', '1.2.5.3'];
</code></pre>

<p>I would like to be able to find the string that denotes the highest value.</p>

<p>I already tried</p>

<pre><code>Math.max.apply(null, arr)
</code></pre>

<p>Since there are multiple decimals, it simply won't work.</p>
