Take double arrow space $[0,1]\times \{1,2\}$
Where topology is dictionary topology defined by linear order as $(a,b)<(c,d)$ iff $a<c$; or ;$a=c \;\&\; b<d$
open sets are in the form $$((a, b] \times\{1\}) \cup([a, b) \times\{2\})$$
I want to know that is this topology has least upper bound property?
I know that $\mathbb R$ has this axiom, by using this can I show the above topology has least upper bound property?
By doing this I want to show the above topology is compact. I have seen https://dantopology.wordpress.com/2009/10/07/the-lexicographic-order-and-the-double-arrow-space/ proves it but it seems a bit advanced and less informative.
Let $X$ be the double arrow space. Your description of the order topology on $X$ isn’t quite right. The set that you describe is the open interval in $X$ between $\langle a,1\rangle$ and $\langle b,2\rangle$, but that is not the only kind of open interval in $X$; for instance, the open interval between $\langle a,2\rangle$ and $\langle b,1\rangle$ is $(a,b)\times\{1,2\}$. And of course all unions of open intervals are open as well.
Let $\preceq$ be the lexicographic order on $X$; the linear order $\langle X,\preceq\rangle$ does have the least upper bound property. To prove this, let $\varnothing\ne A\subseteq X$. Let
$$P=\{x\in[0,1]:\exists i\in\{1,2\}\,(\langle x,i\rangle\in A)\}\,;$$
$[0,1]$ has the least upper bound property, so let $y=\sup P$, where the supremum is with respect to the usual order on $[0,1]$.
Thus, in all cases $\sup_\preceq A$ exists.