List sort by key by z then by y then by x location

I did search the forum. My node setup was actually partially inspired by this post.

In your example they used a sort by function, which I am not able to use since I’m using separate components of location points (x,y, and z), and not the family instance location function itself.

My problem is that when I sort by y, then try to sort the result by x, the y becomes scrambled again.
Below is the continuation of the above screenshot.