How to sort points?

Hello Grasshopper masters!
Can I have a question? I have two “planes” of points one is displaced and anoterone is flat. What I want is I want to pot them together and create surface from those points. So what I need firstly is, to get regular order of the points in X direction (as U can see in the PrtSc in attach). Can U help me with that?

pointstosort.3dm (573.4 KB) (67.8 KB)

Thanks a lot! Im looking forward to your advices :wink:

patch not cool?

you can order like this then make your curves then your surface - simply one way

check this (71.8 KB)

1 Like

Thank you guys, I have combined both of your node trees, and oalaa it works :smiley: