sortByCompare<K> method
Sorts elements by the compare
of their keyOf
property.
Sorts elements from start
to end
, defaulting to the entire list.
Implementation
void sortByCompare<K>(
K Function(E element) keyOf, int Function(K a, K b) compare,
[int start = 0, int? end]) {
quickSortBy(this, keyOf, compare, start, end);
}