I have a list of tuples in my Blender python code
scores=[(1489,\"Sean\"), (2850,\"Bob\"), (276,\"Crap Player\"), (78495, \"Great Player\"), (8473, \"Damian\
sorted() returns the sorted sequence. If you want to sort a list in place then use list.sort().
sorted()
list.sort()