Remapping / Reordering Lists in Grasshopper

Hi all,

I have two lists of data (which for ease of understanding I have entwined) from which I am looking to create a third list of data which uses the value of one as the index and the value of the other as the value in this new list. Please see the screenshot below.

For example, at index 292, List A has value 37 and List B has value 119.7, I would like the new list to have at Index 37 the value 119.7.

Is this possible? Seems like it should be somehow, but maybe I need to take a few steps back.

Hi Oliver, try the “sort” component which can sort lists analog to a key list.

In C# this would be Array.Sort()

Worked perfectly!