Re-arrange a list based on a sorted list

Hello all,

I’m sure that this is a simple problem but I currently cant seem to work this out. I have a list of geometries which are in a random order. I have taken the centroid of these and arranged them around a curve to ensure they are in sequence. Once these are sorted how I do then rearrange this to then sort the geometries in the correct list order?

You can simply use ListItem with map indices output of SortAlongCurve: (14.7 KB)

Great thanks Mahdiyar! Knew it would be something simple!