isSortedBy

inline fun <T, R : Comparable<R>> Iterable<T>.isSortedBy(crossinline selector: (T) -> R): Boolean

Returns true, if the list is sorted ascending according to the selector.

Return

true, if the list is sorted in ascending order

Parameters

selector

the return of the selector is used for evaluating whether the list is sorted