title: How can I sort string with characters and numbers in Python?
body: <p>I'm trying to sort following things</p>
  <pre><code>l = [&quot;125.13-ac35&quot;, &quot;142.1532-afe354eqd&quot;, &quot;125.13-abe319ej&quot;, &quot;142.1523-d315aw&quot;]
  </code></pre>
  <p>like this using Python.</p>
  <pre><code>l = [&quot;125.13-abe319ej&quot;, &quot;125.13-ac35&quot;,  &quot;142.1523-d315aw&quot;, &quot;142.1532-afe354eqd&quot;]
  </code></pre>
  <p>Someone suggested me to use radix sort, but that doesn't work as I wanted.
  For example, to sort those things, following list</p>
  <pre><code>a = [15, 3216, 120, 1, 1000, 253]
  </code></pre>
  <p>should be sorted like this</p>
  <pre><code>a = [1, 1000, 120, 15, 253, 3216]
  </code></pre>
  <p>Is there any sorting algorithm to sort like that?</p>