sort method

void sort(
  1. String? field,
  2. String? type,
  3. bool? ascending
)

Implementation

void sort(String? field, String? type, bool? ascending) async
{
  if (_dataset == null ||  _dataset!.isEmpty || field == null) return;

  busy = true;

  sort_transform.Sort sort = sort_transform.Sort(null, field: field, type: type, ascending: ascending);
  await sort.apply(_dataset);

  busy = false;
}