kotlin.comparisons.java.util.Comparator.thenBy

thenBy

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

Platform and version requirements: JVM

Creates a comparator comparing values after the primary comparator defined them equal. It uses the function to transform value to a Comparable instance for comparison.