/** * Change the sort order at the given index to descending sort. * @param index the index of the comparator to change */ public void setDescendingOrder(int index) { getInvertibleComparator(index).setAscending(false); }
/** * Invert the sort order of the sort definition at the specified index. * @param index the index of the comparator to invert */ public void invertOrder(int index) { getInvertibleComparator(index).invertOrder(); }
/** * Change the sort order at the given index to ascending. * @param index the index of the comparator to change */ public void setAscendingOrder(int index) { getInvertibleComparator(index).setAscending(true); }