sortRange method

void sortRange(
  1. int start,
  2. int end,
  3. int compare(
    1. E a,
    2. E b
    )
)

Sort a range of elements by compare.

Implementation

void sortRange(int start, int end, int Function(E a, E b) compare) {
  if (source.length != _initialSize) {
    throw ConcurrentModificationError(source);
  }
  source.sortRange(start, end, compare);
}