Python: sorting string numbers not lexicographically
<p>I have an array of string-numbers, like:</p>

<pre><code>numbers = ['10', '8', '918', '101010']
</code></pre>

<p>When I use <code>sorted(numbers)</code>, I get them sorted lexicographically, e.g. <code>'8' &gt; '17'</code>.</p>

<p>How can I iterate over the strings sorted according to the number value?</p>