Order
inline fun <Element> Order(crossinline comparator: (left: Element, right: Element) -> ComparisonResult): Order<Element>(source)
Order builder from a comparator that compares the left and right elements to each other.
Creates a custom Order context using the provided comparison logic.
Return
An Order instance that uses the provided comparator function for comparisons.
Parameters
comparator
A function that takes two elements and returns their ComparisonResult.
Type Parameters
Element
The type of elements this order context will handle.