asOrder

Order builder from a Comparator that compares the left and right elements to each other.

Creates an Order context that delegates to the provided Comparator for comparisons.

Receiver

The comparator to convert to an order context.

Return

An Order instance that delegates to this comparator.

Type Parameters

Element

The type of elements this comparator handles.