What would be an order preserving map $\mathbb R^2 \mapsto \mathbb R$ if $\mathbb R^2$ is arbitrarily ordered by x then y?
I saw the interleaving answers here: Examples of bijective map from $\mathbb{R}^3\rightarrow \mathbb{R}$ but they don't mention order preserving.
Simply doing a linear transofrmation $w=5x+7y$ for example isn't order preserving because before $(1,1) < (2,0)$ but after $12 > 10$.
So what would be an order preserving map? Is interleaving order preserving?
Edit: By arbitrarily ordering $\mathbb R^2$ I mean using a comparer like this one:
(a,b)=>{ //a,b are Vector2
let x = a.x - b.x;
if (x != 0){
return x;
}
return a.y - b.y; // a tie with x is broken with y
}
So for example $(1,3) < (1,5) < (2,2)$
Another comparer is to set a known minimum point and then to compare distances from that point. My set of points is known to be "larger" than that minimum.
I set my minimum to $(0,0)$ and then order all the other points relative to their distance from that point. So we'll get: blue(2,3) < red(6,2) < green(9,5) etc.