asKotlinStdlib

Converts Kone Comparator to Kotlin stdlib Comparator.

Creates a Kotlin standard library comparator that delegates to this Kone comparator and converts the result to an integer.

Receiver

The Kone comparator to convert.

Return

A KotlinStdlibComparator that wraps this Kone comparator.

Type Parameters

Element

The type of elements this comparator handles.