compareTo
context(order: Order<Element>)
infix operator fun <Element> Element.compareTo(other: Element): Int(source)
infix operator fun <Element> Element.compareTo(other: Element): Int(source)
Compares this and other elements but in terms of the built-in language compareTo operator.
The only usage is to import to make <, <=, >, and >= work in Order context.
Receiver
The left element in the comparison.
Return
An integer comparison result compatible with Kotlin's standard comparison operators.
Context Parameters
order
The order context in which to perform the comparison.
Parameters
other
The right element to compare with this element.
Type Parameters
Element
The type of elements being compared.