It might be displaying as the same, but 2 has a smaller Y value, so it came first
i’m guessing there’s rounding involved somehow, I don’t have a solution for you, just an observation.
That’s the not the issue, The issue is he wants to sort via XYZ but as you see the Z’s are incorrect, which like @victorlin said there is probably some floating point error somewhere. My guess is in the Y values where something like the part of the list which goes: