I'm new to Python's custom sorting capabilities, but I'm sure the following can be done. I have a list of tuples, and each tuple looks like this:
(some_int, some_int2, string)
I want to sort the list by the descending difference between some_int and some_int2, i.e. the largest difference between these two ints should be at the head of the list. It can safely be assumed that some_int2 is always bigger than some_int.
Thank you all.