* @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.setColumnIndex(index);
te.setSortDir(sortDir);
if (fireEvent(Events.SortChange, te)) {
getTableHeader().sort(index, sortDir);
getView().sort(index, sortDir);
}
} else {