thenByDescending method

SortedList<E> thenByDescending(
  1. Comparable selector(
    1. E element
    )
)

Returns a new list with all elements sorted according to previously defined order and descending natural sort order of the values returned by specified selector function.

Note: The actual sorting is performed when an element is accessed for the first time.

Implementation

SortedList<E> thenByDescending(Comparable Function(E element) selector) {
  return SortedList<E>.withSelector(this, selector, -1, _comparator);
}