result = [None for _ in range(len(l))]
for new_index, old_index in enumerate(sorted_positions):
    result[old_index] = new_index
return result
Given a "jumbled" list L, get a list where each element is the index of the corresponding element of L, if L was sorted