Comparable type
Learn about the type that represents ordered values.
Comparable is an abstract type that represents all values that have a concept of order, including numbers, strings, dates, and times.
A value is comparable if it can be sorted in a particular order relative to other values of the same type. For example, you can compare two numbers to see which is greater, or two strings to determine which comes first alphabetically.
For more details on what is comparable, see the section on comparability.