>>> from operator import itemgetter
>>> ul = [(10,2),(9,4),(10,3),(10,4),(9,1),(9,3)]
>>> ol = sorted(ul, key=itemgetter(0,1), reverse=True)
>>> ol
[(10, 4), (10, 3), (10, 2), (9, 4), (9, 3), (9, 1)]
What I want is to sort reverse=False on the second key. In other words, I want the result to be:
[(10, 2), (10, 3), (10, 4), (9, 1), (9, 3), (9, 4)]
How do I do this?