title: How to sort a list of strings which contain numbers and characters
body: <p>I have <code>list = ['1-10', '1-9', '1-8', '1-11a', '1-12', '1-11b', '1-11']</code>
  that should be sorted this way:</p>
  
  <pre><code>sortedlist = ['1-8', '1-9', '1-10', '1-11', '1-11a', '1-11b', '1-12'].
  </code></pre>
  
  <p>How can I do that?</p>
  
  <p>I can separate the strings via the split method to only care about what's after the <code>-</code>. </p>
  
  <pre><code>list.sort(key=lambda a: a.split('-')[1])
  </code></pre>
  
  <p>but then 1-10, 1-11 and so on come before 1-8. And I can't use int() because of the 'a' and 'b'.</p>