* @param index the column index
* @param sortDir the direction to sort (NONE, ASC, DESC)
*/
public void sort(int index, SortDir sortDir) {
if (rendered) {
TableEvent te = new TableEvent(this);
te.columnIndex = index;
te.sortDir = sortDir;
if (fireEvent(Events.SortChange, te)) {
getTableHeader().sort(index, sortDir);
getView().sort(index, sortDir);