I feel like an idiot for asking this question, as I know I've seen the elements of the solution before. I just cannot remember what they are or where I saw them.
Essentially, I want to take a list of indices (row 2, below), sort them numerically, then convert them to values from a lookup table...