sort method

Future<List<E>> sort([
  1. int compare(
    1. E a,
    2. E b
    )?
])

Refer to List.sort.

Additionally returns the list.

Implementation

Future<List<E>> sort([int compare(E a, E b)?]) async {
  return (await this)..sort(compare);
}