Im trying to sort these data in : - in alphabetical order with each person's highest score for the tests - by the highest score
            Asked
            
        
        
            Active
            
        
            Viewed 257 times
        
    1 Answers
1
            
            
        Already asked an answered. See Sort a list by multiple attributes?
Also Both list.sort() and sorted() accept a reverse parameter with a boolean value.
One answer from the link
import operator
s = sorted(file, key = operator.itemgetter(1, 2),reverse=True)
        Community
        
- 1
 - 1
 
        Robert Jacobs
        
- 3,266
 - 1
 - 20
 - 30
 
- 
                    if you think a question is a dupe you should mark it as one not use an answer from the dupe – Padraic Cunningham Jan 21 '15 at 22:36
 - 
                    How do I mark an answer as a duplicate? – Robert Jacobs Jan 21 '15 at 22:38
 - 
                    You hit close and select duplicate of .. – Padraic Cunningham Jan 21 '15 at 22:39
 - 
                    just below the questin tags – Padraic Cunningham Jan 21 '15 at 22:40
 - 
                    I do not have enough points to do this. – Robert Jacobs Jan 21 '15 at 22:41
 - 
                    If you paste the link into the comments it will be linked, there is 10 more points! – Padraic Cunningham Jan 21 '15 at 22:41
 - 
                    @RobertJacobs Hello , I also tried that but it wouldnt sort the average and also the name at the same time. – ImYu Jan 21 '15 at 22:50