isSortedByCompare<T, K> function

Matcher isSortedByCompare<T, K>(
  1. K keyOf(
    1. T
    ),
  2. Comparator<K> compare
)

Matches Iterables which are compare-sorted by their keyOf property.

Implementation

Matcher isSortedByCompare<T, K>(K Function(T) keyOf, Comparator<K> compare) =>
    _IsSorted(keyOf, compare);