I have a list name,weight,height like this:
list1 = [('jacob', 75, 180)
('sam', 90, 190)
('sara', 75, 175)
('bob', 60, 175)]
First I want to sort it by height(MAX to MIN) and I've done it. Then if the heights are the same, just sort those with same heights, by weight(MIN to MAX).
I get this:
list1 = [('sam', 190, 90)
('jacob', 180, 75)
('sara', 175, 75)
('bob', 175, 60)]
But I want this:
my_list = [('sam', 190, 90),
('jacob', 180, 75),
('bob', 175, 60),
('sara', 175, 75)]