sort method

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

Implementation

void sort([int Function(T a, T b)? compare]) {
  _state.dataSources.sort(compare);
  notifyListeners();
}