infix fun <T : Iterable<E>, E> Builder<T>.isSorted(comparator: Comparator<E>): Builder<T>
Asserts that the subject iterable is sorted according to the Comparator. Empty iterables are considered sorted.
fun <T : Iterable<E>, E : Comparable<E>> Builder<T>.isSorted(): Builder<T>
Asserts that the subject iterable is sorted according to the natural order of its elements. Empty iterables are considered sorted.