infix fun <T : Collection<E>, E> Builder<T>.isSorted(comparator: Comparator<E>): Builder<T>
Asserts that the subject collection is sorted according to the Comparator. Empty collections are considered sorted.