}
protected boolean updateSortingState(int columnIndex, SortDirection direction, boolean keepExisting) {
SortingState sortingState = getSortingState();
String columnName = getColumnName(columnIndex);
return sortingState.applySorting(columnName, direction, keepExisting);
}
protected void sortByIndex() {
Collections.sort(getRows(), INDEX_COMPARATOR);
updateRowIndexes(0);