sortRange method
(undocumented) Sorts a range of consecutive elements in this List based on the given comparison function. @param {function(,):number} sortfunc This function is passed two elements in the list. It should return zero if they are equal, less than zero if the first value should come before the second value, or greater than zero if the first value should come after the second value. @param {number=} from int The optional index at which to start the sort, including that element; default to zero, the first element of the list. @param {number=} to int The optional index at which to end the sort, excluding that element; defaults to the end of the list. @return {List.
Implementation
_i3.List<T> sortRange(
_i2.num Function(
T,
T,
) sortfunc, [
_i2.num? from,
_i2.num? to,
]) =>
_i4.callMethod(
this,
'sortRange',
[
_i4.allowInterop(sortfunc),
from ?? _i5.undefined,
to ?? _i5.undefined,
],
);