Lets say you have a list of tuples (last_name, first_name) and you want to sort them reverse alphabetically by last_name and then if two people have the same name for them to be sorted alphabetically by first name. Is there a way to do this with one line?
e.g.
Sorted(names, key = ?) = [('Zane', 'Albert'), ('Zane', 'Bart'), ('Python', 'Alex'), ('Python', 'Monty')]
With two lines I guess you could rely on sort stability and first sort by first name and then sort by last name reversed.