Note: When you are sorting and grouping geometry, you can get some unexpected results due to “floating point fuzz”. This does not seem to affect your data but it is something you need to be aware of. For example, given geometry with these coordinates you might get some unexpected results when sorting by X,Y,Z (note the last 2 decimal digits of X-values).