Let $(A,\leq^A)$ be a countable linear (or total) order. It is well-known that $(A,\leq^A)$ order-embeds into the rationals $(\mathbb Q,\leq)$.
What I am wondering is whether there also is an embedding of $(A,\leq^A)$ into the reals $(\mathbb R,\leq)$ such that, whenever the infima/suprema $$\bigwedge_i a_{i}\text{ or }\bigvee_{i}b_i$$ exist in $(A,\leq^A)$, then these are preserved by the embedding.
I think this should be true and my proof would be akin to the embedding of $(A,\leq^A)$ into the rationals (for simplicity, I embed the order into the open unit interval): enumerate the elements of $A$ by $(a_n)_{n\in\mathbb N}$ and then define the mapping $$q_0:a_0\mapsto 1/2$$ and from $q_n$, define $$q_{n+1}:=q_n\cup\left(a_{n+1}\mapsto\frac{q_n(x)+q_n(y)}{2}\right)$$ where $x,y\in\mathrm{dom}(q_{n})=\{a_0,\dots,a_n\}$ are such that they fulfill $$x<^Aa_{n+1}<^Ay$$ and $x$ is maximal with this property and $y$ minimal with this property in $\mathrm{dom}(q_n)$. The embedding $q$ is given by the union of all the $q_n$.
My question is whether the above is correct and whether there is maybe a simpler proof? Could it be possible to show that the completion of $(A,\leq^A)$ embeds into $(\mathbb R,\leq)$ while preserving infima/suprema (the completion of $(\mathbb Q,\leq)$)?