How do you reorder a list with values stored in a dictionary?