I have a huge list of tuples in a text file, each of them separated by a new line, that are of the following format:
... and so on. I need to sort these tuples by the second value, which is separated from the first value by a tab character. I don't want to have to swap the tuples, sort them, then swap them back, because that seems inefficient and dumb, but I can't think of a good way to do it otherwise.
Any tips on accomplishing this task?