sort method

List<T> sort(
  1. num sortfunc(
    1. T,
    2. T
    )
)

Sort the List according to a comparison function. @param {function(T,T):number} sortfunc This function is passed two items 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. @return {List.

Implementation

_i3.List<T> sort(
        _i2.num Function(
          T,
          T,
        ) sortfunc) =>
    _i4.callMethod(
      this,
      'sort',
      [_i4.allowInterop(sortfunc)],
    );