sortRange method

*<Null safety>*

void sortRange (int start, int end, [int compare(E a, E b)])

Implementation

void sortRange(int start, int end, [int Function(E a, E b)? compare]) {
  RangeError.checkValidRange(start, end, length);
  algorithms.quickSortBy<E, E>(
      this, identity, compare ?? compareComparable, start, end);
}