title: Sorting a list by int values in a String
body: <p>I have a List e.g.:</p>
  <pre><code>Name - Seconds: 3.14 - Mistakes: 0
  DsO - Seconds: 7.09 - Mistakes: 0
  Xardas - Seconds: 7.24 - Mistakes: 0
  Badudu1 - Seconds: 13.55 - Mistakes: 1
  </code></pre>
  <p>How can I sort it by seconds?</p>
  <p>So the user types in his name which is the first entry before the &quot; - &quot;</p>
  <p>I tried it with this:</p>
  <pre><code>seconds_position = len(user_input) + len(&quot; - Seconds: &quot;)
  seconds = substring[seconds_position]
  seconds = seconds.partition(&quot; &quot;)[0]
  </code></pre>
  <p>I guess that I could just do this for every list entry and compare them but how do I compare it when the seconds are two-digit before the comma?</p>