Ordering a list according to other lists order

Is there a way to order a list based on another lists order, suppose we have two lists of point equally distanced points as a grid in x and y and equal in index count, but one list starts from bottom left going to the right point and then top then left point, the other goes from bottom left to top and then back from mid bottom ?


no script

1 Like

you mean you need a script ?

Ordering Points.gh (3.4 KB)

Instead of trying to sort list #2 to match list #1, why not just use list #1 to create list #2 (move all the points with the same offset).

If you must sort the second list to get your result, how do you handle the fact that both your lists contain duplicated points?


1 Like