From wikipedia, the cantor function is defined as follows:
Express x in base 3. If x contains a 1, replace every digit after the first 1 by 0. Replace all 2s with 1s. Interpret the result as a binary number. The result is c(x).
However if I use $x=0.111, y=0.102$ in base 3. Then $x>y$. But the first two steps would give $\phi(x)=0.100$ and $\phi(y)=0.101$ under base 2. Then $\phi(x)<\phi(y)$. How to explain this? I have not examined wikipedia's definition is really compatible with the other definition provided.