Sort strings of ints and save original index
I would like to sort lists of the following form: [‘1000-1005’, ‘6767-8787′, ’88-5607’, ‘600-607’, ‘909-950′] by the integer value before the ‘-‘ symbol and also store the original index after sorting, so something like this: [(2, ’88-5607’), (3, ‘600-607’), (4, ‘909-950’), (0, ‘1000-1005’), (1, ‘6767-8787’)] Where the tuples in the output list contain the original… Read More Sort strings of ints and save original index