thenComparator

inline fun <T> Comparator<T>.thenComparator(crossinline comparison: (a: T, b: T) -> Int): Comparator<T>(source)

Creates a comparator using the primary comparator and function to calculate a result of comparison.

Since Kotlin

1.1

Samples

inline fun <T> Comparator<T>.thenComparator(crossinline comparison: (a: T, b: T) -> Int): Comparator<T>(source)

Creates a comparator using the primary comparator and function to calculate a result of comparison.

Since Kotlin

1.0

Samples