A totally ordered set is a pair of a set and an order relation on , which satisfies the following properties:
The order relation in a totally ordered set is called a total order (hence the name), which can be distinguished from a partially ordered set in that the latter only has a partial order which does not satisfy the third property, but a weaker version where for all .
The real_numbers are a totally ordered set. So are any of the subsets of the real numbers, such as the rational_numbers or the integers.
The complex_numbers do not have a canonical total ordering, and especially not a total ordering that preserves all the properties of the ordering of the real numbers, although one can define a total ordering on them quite easily.