descendingList<T> function

List<T> descendingList<T>(
  1. Iterable<T> it
)

Reversed sorted list.

Implementation

List<T> descendingList<T>(Iterable<T> it) {
  try {
    return ascendingList(it).reversed.toList();
  } catch (e) {
    return it.toList();
  }
}