title: How can I compare software version number using JavaScript? (only numbers)
body: <p>Here is the software version number:</p>
  <pre><code>&quot;1.0&quot;, &quot;1.0.1&quot;, &quot;2.0&quot;, &quot;2.0.0.1&quot;, &quot;2.0.1&quot;
  </code></pre>
  <p>How can I compare this?</p>
  <p>Assume the correct order is:</p>
  <pre><code>&quot;1.0&quot;, &quot;1.0.1&quot;, &quot;2.0&quot;, &quot;2.0.0.1&quot;, &quot;2.0.1&quot;
  </code></pre>
  <p>The idea is simple...:
  Read the first digit, than, the second, after that the third...
  But I can't convert the version number to float number...
  You also can see the version number like this:</p>
  <pre><code>&quot;1.0.0.0&quot;, &quot;1.0.1.0&quot;, &quot;2.0.0.0&quot;, &quot;2.0.0.1&quot;, &quot;2.0.1.0&quot;
  </code></pre>
  <p>And this is clearer to see what is the idea behind...
  But, how can I convert it into a computer program?</p>