isSortedByCompare<K> method

Coral<bool> isSortedByCompare<K>(
  1. K keyOf(
    1. E element
    ),
  2. int compare(
    1. K a,
    2. K b
    )
)

Returns true if this collection is sorted by compare of keyOf reactively.

Implementation

Coral<bool> isSortedByCompare<K>(
        K Function(E element) keyOf, int Function(K a, K b) compare) =>
    coral.map((source) => source.isSortedByCompare<K>(keyOf, compare));