How to sort a version list? : 

<p>I have a method that list some versions of an application on my computer, the list following has this format and the content are strings:</p>

<pre class="lang-none prettyprint-override"><code>['1.15.1.23', '1.10.1.34', '1.9.2.3', ...]
</code></pre>

<p>When I call <code>sorted(mylist)</code>, the output does not appear to sort some items, I'm getting this:</p>

<pre class="lang-none prettyprint-override"><code>['1.15.1.51', '1.15.1.9', '1.15.2.11', '1.15.2.6']
</code></pre>

<p>What I'm doing wrong? I expected the output as:</p>

<pre class="lang-none prettyprint-override"><code>['1.15.1.9', '1.15.1.51', '1.15.2.6', '1.15.2.11']
</code></pre>
