sorted method

Bloom<List<E>> sorted(
  1. int compare(
    1. E a,
    2. E b
    )
)

Returns a list containing the elements of this collection sorted by compare reactively.

  • compare: Comparator defining the sort order.

Implementation

Bloom<List<E>> sorted(int Function(E a, E b) compare) =>
    computed((via) => List.unmodifiable(via(bloom).sorted(compare)));