title: How to sort a list containing alphanumeric values?
body: <p>I have a list that consists of details like this:</p>
  <pre><code>list1 = [&quot;1&quot;, &quot;100A&quot;, &quot;342B&quot;, &quot;2C&quot;, &quot;132&quot;, &quot;36&quot;, &quot;302F&quot;]
  </code></pre>
  <p>I want to sort this list, such that the values are in the following order:</p>
  <pre><code>list1 = [&quot;1&quot;, &quot;2C&quot;, &quot;36&quot;, &quot;100A&quot;, &quot;132&quot;, &quot;302F&quot;, &quot;342B&quot;]
  </code></pre>
  <p>Just doing <code>list1.sort()</code> obviously doesn't give the correct answer -
  it gives:</p>
  <pre><code>list1 = [&quot;1&quot;, &quot;100A&quot;, &quot;132&quot;, &quot;2C&quot;, &quot;36&quot;, &quot;302F&quot;, &quot;342B&quot;]
  </code></pre>
  <p>I'm assuming this is because Python treats all these as strings directly.
  However, I want to sort them based on their numeric value FIRST, and then the character that follows the number.</p>
  <p>How do I proceed?</p>