There's this list that I want to sort:
table = [("A", 5, 3), ("B", 5, 6), ("C", 3, 1)]
Inside each tuple, let's call the elements name
, points
, ex
, in that order.
I want to sort that list by descending order of points, that's simple enough.
But if points are the same for 2 tuples, I'll sort those by ascending order of ex.
How can I go about doing this?