kotlin.comparisons.thenByDescending

thenByDescending

inline fun <T> Comparator<T>.thenByDescending(
    crossinline selector: (T) -> Comparable<*>?
): Comparator<T>

Platform and version requirements: JS

Creates a descending comparator using the primary comparator and the function to transform value to a Comparable instance for comparison.

inline fun <T, K> Comparator<T>.thenByDescending(
    comparator: Comparator<in K>, 
    crossinline select