Let $x,y\in\ [0,1]$ a real numbers. Suppose that $$x=\sum_{n=1}^{+\infty}\frac{a_n}{3^n},\quad y=\sum_{n=1}^{+\infty} \frac{b_n}{3^n},\;a_n,b_n\in\{0,1,2\}$$ they are their ternary expansions.
Suppose we know only the ternary expressions and not actually the real number they represent.
Question Can I compare $x$ and $y$ working exclusively in base 3? Or rather, how can I determine if $x\le y$ or $y\le x$?
Thanks!