Sort points in a list

hi everyone!
I need to sort some points in a new group definition sorted by the distance which they have with a curve I put in the edge of my shape, so I can have an organized data groups in which every branch have a same distance to the curve I have in the edge. I did some operations which disturbed my data tree. I attached the gh file below.
thanks a lot! (20.4 KB) (20.8 KB)


thanks my friend :slightly_smiling_face: :ok_hand: