[ This question can be seen as a second part to my question A question on linear orders and elementary equivalence ]
The question is whether the following conjecture is true or false. I am interested on this question because using this result I know how to solve a problem I have been working during the last months; thus, besides an answer I am also interested in knowing any publication (book, paper, etc.) I can cite.
Conjecture: For every first order sentence $\varphi$, if $\varphi$ is satisfiable in some linear order $\langle A, \leq \rangle$ then it is also satisfiable in some linear order $\langle X, \leq \rangle$ where $X$ is a closed subset of real numbers.
Remark: This conjecture can be rewritten as saying that $Th(\{ \langle X, \leq \rangle: X \text{ is a closed set of reals} \}) = Th (\{ \langle A, \leq \rangle: \langle A, \leq \rangle \text{ is a linear order} \})$
What a great question! I had thought at first that it might be true, but unfortunately, here is a counterexample.
Consider the order $\omega^2+\omega^*$. This is an order consisting of countably many convergent sequences, one after the other, with a descending $\omega$-sequence on top. Note that the limit of the $\omega^2$ initial part of the order has no least upper bound. Let us say that $x$ is a limit-from-below node in an order if it is not minimal, but has no immediate predecessor. In this order, these would be the limit ordinals $\omega\cdot n$.
Consider now the sentence $\varphi$ expressing the fact that there is a limit-from-below node but no largest limit-from-below node, that they are bounded above, and furthermore that any node that is above all the limit-from-below nodes has an imediate predecessor (which is also above all the limit-from-below nodes).
This sentence $\varphi$ is true in $\omega^2+\omega^*$, since every node in the descending $\omega^*$ sequence at the top has an immediate predecessor, but I claim it is not true in any closed suborder $X\subset\mathbb{R}$. If $X$ is closed, and has no largest limit-from-below nodes, but these are bounded above, then there will be a supremum of the limit-from-below nodes, and such a supremum will be above all the limit-from-below nodes, but can have no immediate predecessor. So $\varphi$ will fail in $X$.