sort method

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

Sorts the list in-place based on the provided compare function.

Implementation

void sort(int Function(E a, E b) compare) {
  _items.value.sort(compare);
  _makeActionOnDataChanging();
}