A total order on a XX is a ≤\le on XX such that for all a,b∈Xa,b\in X, either a≤ba\le b or b≤ab\le a.

Remarks

Total orders are also called linear orders. A is a totally ordered set with the additional property that every nonempty subset has a least element.

Examples
  • The usual order ≤\le on Z\mathbb{Z} (the ) is a total order.
  • (Lexicographic order) If XX and YY are totally ordered, define an order on X×YX\times Y by (x,y)≤lex(x′,y′)(x,y)\le_{\mathrm{lex}}(x',y') if either x<x′x<x', or x=x′x=x' and y≤y′y\le y' (where x<x′x<x' means x≤x′x\le x' and x≠x′x\ne x'). This gives a total order on the X×YX\times Y.