then

infix fun <T> Comparator<T>.then(comparator: Comparator<in T>): Comparator<T>(source)

Combines this comparator and the given comparator such that the latter is applied only when the former considered values equal.

Since Kotlin

1.0

Samples