I have the following tuple:
[[278, 388, 0.95434654], [279, 388, 0.98770386], [280, 388, 0.960356], [442, 388, 0.98245245], [443, 388, 0.96607447], [278, 389, 0.95714802], [279, 389, 0.98451048], [280, 389, 0.95131117], [442, 389, 0.98007435], [443, 389, 0.95733315]]
I would like to sort it by first then second then third.
I tried the following but it only sorts by first:
def getKey(item):
return item[0]
all_matches_tuple = sorted(all_matches_tuple, key=getKey)