I have a list like this:
original_list = ['Atlanta', 'New York', 'Miami', 'Chicago']
and a second list, that contains the indices that the 1st list should be sorted to:
index_list = [1, 3, 0, 2]
The result should be
new_list = ['New York', 'Chicago', 'Atlanta', 'Miami']
I tried using the "Key" parameter of Python's "Sorted" function , but can't get it to work. Is there a way to do it?