ascending method

Comparator<T> ascending(
  1. bool ascending
)

Implementation

Comparator<T> ascending(bool ascending) {
  if (ascending) {
    return this;
  } else {
    return reversed;
  }
}