Sets the current sort and applies it to the FlexTable. If the index is null, this will disable the sorting.
index
void sort(int? index, bool ascending) { _ascending = ascending; _sortIndex = index; _sortAndFilter(); }