What’s a good way to 2D sort in GH? For example, sorting points by Z, then Y, in cases where there are many with the same Z. In attached GH with random points, Z coords are rounded off to demonstrate.

Spreadsheets have this built in. Is there an efficient way or plugin to do this?

It took me quite awhile this morning to understand how to use Points To Numbers and Numbers To Points in this context, but I got it. For any single case, I don’t see any advantage at all since the orange (Deconstruct) and yellow (Pt2Num) groups produce identical results.

If one wants to explore all the sorting options, a case can be made for Pt2Num with its ‘M’ (Mask) input. Given the time invested to fully understand it though, I’m not so sure.

There isn’t a benefit in this case, just another way of doing it. There may be benefits in other cases though, so being aware of this may be useful one day.

The major difference here is the in the one case the ordering is encoded via wires, while in the other it’s via data.

Thanks all. The decon/con method is wonderfully simple. However I am getting unexpected results with my actual points. The Z is sorted properly, but the Y is not. GH attached with points embedded.

Note that there’s about 16 decimal places in numbers, but GH will only show the first six usually. So the x values could actually be different in the 7th or 8th or 15th place and affect the sorting.