isSortedWith

fun <T> Iterable<T>.isSortedWith(comparator: Comparator<in T>): Boolean(source)