isSortedBy<K extends Comparable> method

Coral<bool> isSortedBy<K extends Comparable>(
  1. K keyOf(
    1. E element
    )
)

Returns true if this collection is sorted by the natural order of keyOf reactively.

Implementation

Coral<bool> isSortedBy<K extends Comparable<dynamic>>(
        K Function(E element) keyOf) =>
    coral.map((source) =>
        source.isSortedByCompare<K>(keyOf, (a, b) => a.compareTo(b)));