sortUnstableByKey<K extends Comparable<K>> method

void sortUnstableByKey<K extends Comparable<K>>(
  1. K key(
    1. T a
    )
)

Sorts the slice with a key extraction function, but might not preserve the order of equal elements.

Implementation

void sortUnstableByKey<K extends Comparable<K>>(K Function(T a) key) {
  _quickSortBy(this, _start, _end - 1, (a, b) => key(a).compareTo(key(b)));
}