Seperating list of points into groups with same z

I have a list of points. What would be the easiest way to seperate a list of points into different groups depending on their z coordinates? (or in general how to seperate data depending on similar attributes).


group by z coordinate.gh (8.7 KB)

This could be one way.


group by z coordinate_re.gh (16.1 KB)