title: Python descending order from text file
body: <p>At the moment I am sorting my text file by descending order like this:</p>
  
  <pre><code>import operator
  fo = open('3a.txt','r')
  x = fo.readlines()
  sorted_x = sorted(x, key=operator.itemgetter(0),reverse = True)
  print(sorted_x)
  </code></pre>
  
  <p>My text files look like this:</p>
  
  <pre><code>5 Helen 
  4 judy
  8 Rachel
  </code></pre>
  
  <p>I was wondering how I would be able to use <code>operator.itemgetter(0)</code> with double figures too?</p>
  
  <p>When I use this with:</p>
  
  <pre><code>5 Helen 
  4 judy
  25 Hanna
  11 Elsa
  8 Rachel
  </code></pre>
  
  <p>The results are all wrong:</p>
  
  <pre><code>['8 Rachel', '5 Helen', '4 judy', '25 Hanna', '11 Elsa']
  </code></pre>
  
  <p>even if I use <code>operator.itemgetter(0, 1)</code>.</p>