sort method

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

Implementation

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

  busy = true;

  TRANSFORM.Sort sort = TRANSFORM.Sort(null, field: field, type: type, ascending: ascending);
  await sort.apply(data);

  busy = false;
}