if (isWidgetColumn(cell)) {
// ignore sorting on widget columns
return;
}
String columnName = columns[cell][COL_NAME];
SortDirection newSortDirection = SortDirection.ASCENDING;
SortSpec firstSortSpec = getFirstSortSpec();
// when clicking on the last sorted field, invert the sort
if (firstSortSpec != null && columnName.equals(firstSortSpec.getField())) {
newSortDirection = invertSortDirection(firstSortSpec.getDirection());
}