title: How to numerically sort list of strings containing numbers?
body: <pre><code>f1 = open("leader")
  lines = f1.readlines()
  lines.sort(key=int, reverse=True)
  f1.close()
  print(lines)
  </code></pre>
  
  <p>with external file values:</p>
  
  <pre><code>345345:player7
  435:zo
  345:name
  23:hello
  1231:football
  </code></pre>
  
  <p>this is to sort them so that the integers are sorted not the names </p>