sorting while preserving order in python,"sorted(enumerate(a), key=lambda x: x[1])"