sortBy<K extends Comparable<K> > method
Sorts elements by the natural order of their keyOf
property.
Sorts elements from start
to end
, defaulting to the entire list.
Implementation
void sortBy<K extends Comparable<K>>(K Function(E element) keyOf,
[int start = 0, int? end]) {
quickSortBy<E, K>(this, keyOf, compareComparable, start, end);
}