sort method

void sort(
  1. int? index,
  2. bool ascending
)

Sets the current sort and applies it to the FlexTable. If the index is null, this will disable the sorting.

Implementation

void sort(int? index, bool ascending) {
  _ascending = ascending;
  _sortIndex = index;
  _sortAndFilter();
}