Python Sorting
list.sort(key=lambda x: x[0])
from operator import itemgetter student_tuples = [ ('john', 'A', 15), ('jane', 'B', 12), ('dave', 'B', 10), ] sorted(student_tuples, key=itemgetter(1,2))