sort abstract method

void sort([
  1. int compare(
    1. E a,
    2. E b
    )?
])

Sorts this list according to the order specified by the compare function.

Implementation

void sort([int Function(E a, E b)? compare]);