sort method

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

Sorts the keys of this map.

Implementation

void sort([int Function(K a, K b)? compare]) {
  _list.sort(compare);
}