sortBy<K extends Comparable<K>> method

void sortBy<K extends Comparable<K>>(
  1. K keyOf(
    1. E element
    ), [
  2. int start = 0,
  3. int? end
])

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);
}