title: Python Sorting a file with names and scores
body: <p>I currently have some data stored in a file that has a persons name and the score that they got when they played the game.</p>
  
  <p>The data in the file looks like this:</p>
  
  <pre><code>Reece 0
  John 5
  Alex 2
  </code></pre>
  
  <p>I have tried using something like this:</p>
  
  <pre><code>with open("Scores.txt","r") as f:
      lines = sorted(f.readlines())
      print lines
  </code></pre>
  
  <p>But that just sorts them by the first letter in each of their names.</p>
  
  <p>My output would need to be like this:</p>
  
  <pre><code>Reece 0
  Alex 2
  John 5
  </code></pre>
  
  <p>It is a relatively simple program and I am using Python 2.7</p>
  
  <p>Any help would be amazing I can also provide any info on my program!</p>