nedbat, 22 days ago Another #Python sorting tidbit: the key= function can return a tuple. Tuples are sorted lexicographically: by first element and where firsts are equal, by second element, etc.
Another #Python sorting tidbit: the key= function can return a tuple. Tuples are sorted lexicographically: by first element and where firsts are equal, by second element, etc.