Ordering points by which domain x-component falls into

Hi, I am attempting to break up a collection of points by x-component into groups according to whether or not they fall into a defined domain. I would like to be able to select all the points that have an x value between 0 and 1.0 separately from those which have a value between 1.0 and 2.0, etc.

I am having trouble sorting the original points after finding which domain they fall in, I have tried to sort synchronously but the list after sorting has a different structure than the original. Can you help me call back the original points after sorting this way? Thanks!

Upload file

Draw Order1.gh (21.6 KB)

Draw Order1_re.gh (19.4 KB)

1 Like

Very helpful, thank you!

You’re welcome :slight_smile: