Sort points (located on the perimeter of a rectangle)

Hi,

i want to create surfaces from one point to the next one and with both points moved vertically.
The problem is that the points are not in the right order. Index 25 is for example on the opposite edge of index 26 which leads to the following result.
How can I fix that?

Thanks,
Laurin

Hi,

You are probably in the need of Sort Along Curve component.

If you need more help, please upload your GH file with internalized geometry.

Oh man!
It works like a charm.
Thanks for the fast answer.