Im trying to sort some points by X en Y. I saw that the “sort natural” node automatically looks at both and then sorts them. Works perfectly , I thought, but then I found out that it doesnt handle negative numbers well.
The problem if I would first sort by X and then Y is that, if for example the y values are the same ,if I sort by X it sorts it but then if I sort by Y afterwords it rearranges the list eventhough every value is the same. Do you guys have an idea for how to solve this ?
I am going to try a sort with if x=x , sort by y and if y=y sort by x , but when the x or y values are not the same (sometimes its a couple of mm different) then it wont work I think…
Update:
Solved the problem with the above method guys. Thanx for the reaction. The only thing is that either the x’s or y’s have to be the same. For the projects im doing thats oke.
I already did the other method, because i think it would be a bit more work keeping track of groups/lists/sublists seeing that im working in large projects where there are 200+ locations that are already grouped per element/object.