KtComparatorExtensions<T> extension

on

Methods

then(Comparator<T> comparator) Comparator<T>
Combines this Comparator and the given comparator such that the latter is applied only when the former considered values equal.
thenBy(Comparable selector(T)) Comparator<T>
Combines this Comparator and the given selector such that the latter is applied only when the former considered values equal.
thenByDescending(Comparable selector(T)) Comparator<T>
Combines this Comparator and the given selector such that the latter is applied only when the former considered values equal. The provided selector is used for sorting in reverse.
thenDescending(Comparator<T> comparator) Comparator<T>
Combines this Comparator and the given comparator such that the latter is applied only when the former considered values equal. The provided comparator is applied in reverse order.