boolean direction = false;
if(dataGridTableSortWrapper != null) {
sortIndex = dataGridTableSortWrapper.getCurrentSortColumnId();
direction = dataGridTableSortWrapper.getCurrentReverseBit();
}
dataGridTableSortWrapper = new SortableTable(dataGridTable);
for(int i=0; i<dataGridColumns.length; i++)
if(dataGridColumns[i].sortAlgorithm != null) dataGridTableSortWrapper.setComparator(i, dataGridColumns[i].sortAlgorithm);
dataGridTableSortWrapper.sortByColumn(sortIndex, direction);
}