sortedDescending property

Coral<List<E>> get sortedDescending

Returns a new list containing the elements of this collection sorted in descending order.

Implementation

Coral<List<E>> get sortedDescending => coral.map((source) {
      return List<E>.unmodifiable(
          source.toList()..sort((a, b) => b.compareTo(a)));
    });