KtComparatorExtensions<T> extension

on

Methods

then(Comparator<T> comparator) Comparator<T>

Available on Comparator<T>, provided by the KtComparatorExtensions extension

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>

Available on Comparator<T>, provided by the KtComparatorExtensions extension

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>

Available on Comparator<T>, provided by the KtComparatorExtensions extension

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>

Available on Comparator<T>, provided by the KtComparatorExtensions extension

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.