I’m trying to sort a list of families by location. First sort by z then group, then sort those groups by y then by x.
I’ve gotten as far as sorting and grouping by z, then sorting the groups by y. I’m not sure how to continue and sort them by x without losing the y sort I already did. One way would be grouping them again by Y, but I tried that and ended up in sub-list hell. Any suggestions?
Oh, and I also found a sort points by XY node (as seen in the screenshot), but I’m not sure how I can use it.
However, in my case, since my goal is not to sort the list itself, but sort another list by keys, I’m not sure how to use the code you suggested? I guess one way is to store the 3 lists of point components into variables and then use those variables as keys for the sort argument. I don’t know if that would work though, and I can’t try it out myself because I don’t know python.