So earlier I asked this question: How to sort list depending on values in sublists? I wanted to know how to sort some sublists, and I am using this solution:
example = (sorted(sorted(example), key=itemgetter(1), reverse=True))
But now I am noticing that this is not sorting the numbers quite correctly, e.g. 25, 43 23, 3
is being sorted as 43, 3, 25, 23
. Obviously 3 is not greater than 25! So how do I change this to check for the whole number? Not just the first place holder.