title: Python list sort reverse order
body: <p>I am trying to create some sort of scoreboard based on the highest values. I have added the reverse=true flag but it still prints as ascending rather than descending order. I have tried changing the code to use the sort() method as well but it just doesn't seem to work. </p>
  
  <pre><code>def sort(results):
  import csv
  import operator
  
  sort = open(results,'r')
  newsort = sorted(sort,key=operator.itemgetter(1), reverse = True)
  
  for eachline in newsort:
      print (eachline)
  </code></pre>
  
  <p>Bob,5,memory</p>
  
  <p>Blod,1,memory</p>
  
  <p>candy,5,memory</p>
  
  <p>Candy,4,memory</p>
  
  <p>Candice,1,memory</p>
  
  <p>Candybdjf,5,memory</p>
  
  <p>is what prints, even though i have asked it to be sorted by index 1?</p>