Let $X$ be a nonempty totally ordered set which doesn't have a minimum or maximum and let $T$ be order topology on $X$. Let $ K \subset X $ be a nonempty subset of $X$. If $K$ is compact, prove that $K$ has a minimum and maximum.
I tried by contradiciton. Suppose that $K$ has no maximum. Then $ <- \infty, k> k \in K$ is an open cover of $K$ which has no finite subcover. So K cannit be compact. Is this correct?