sortedReversed method

List<T> sortedReversed([
  1. Comparator<T>? compare
])

Creates a reversed sorted list of the elements of the iterable.

If the compare function is not supplied, the sorting uses the compareObject function.

See also: sorted (from 'package:collection/collection.dart').

Implementation

List<T> sortedReversed([Comparator<T>? compare]) => [...this]..sortReversed(compare);