>>> sorted(lista, key=lambda x: (-x[0], x[1])) [(485, 'Elizabeth'), (485, 'Matthew'), (390, 'Jayden'), (207, 'Natalie'), (144, 'Chloe'), (51, 'Elijah')]