Sorting Curves in 2 Groups

Hello , I have set of front and back curves extracted from a roof surfaces . I tried to separated between front and rear curves but couldn’t .I tried using xy as key value to sort them but still when I dispatch its gives me a mixture of both.The gh file is Rhino 7 in metres

Line sorting RH7.gh (25.3 KB)

Hello
you can measure the angle between a point on the edge and the center of surface relative to another reference vector.


As angle is here measured from 0 to 2*PI you’ll have to transform angle bigger than Pi to angle between 0 to Pi.
Line sorting RH7.gh (32.1 KB)

1 Like

If you sort by Z first you can then sort by x or y like you wanted to.

sortgt.gh (12.1 KB)

1 Like

Thanks Laurent for this solution
!

Thanks a lot FTzuk !