setComparatorIndex method
Implementation
void setComparatorIndex(int comparator, {bool reversed = false}) {
assert(_currentComparator >= 0 && _currentComparator < comparators.length,
"Invalid comparator index");
_currentComparator = comparator;
_reversedComparator = reversed;
update();
}