title: How to sort a list of strings numerically?
body: <p>I know that this sounds trivial but I did not realize that the <code>sort()</code> function of Python was weird. I have a list of "numbers" that are actually in string form, so I first convert them to ints, then attempt a sort.</p>
  
  <pre><code>list1=["1","10","3","22","23","4","2","200"]
  for item in list1:
      item=int(item)
  
  list1.sort()
  print list1
  </code></pre>
  
  <p>Gives me:</p>
  
  <pre><code>['1', '10', '2', '200', '22', '23', '3', '4']
  </code></pre>
  
  <p>What I want is </p>
  
  <pre><code>['1','2','3','4','10','22','23','200']
  </code></pre>
  
  <p>I've looked around for some of the algorithms associated with sorting numeric sets, but the ones I found all involve sorting alphanumeric sets. </p>
  
  <p>I know this is probably a no brainer problem but google and my textbook don't offer anything more or less useful than the <code>.sort()</code> function.</p>