code: public boolean isSortable() {
  		// First check global override which turns sorting off
  		if (getSortMode() == SortMode.NONE) {
  			return false;
  		}
  
  		// Otherwise, the table is sortable if at least one column is sortable.
  		TableDataModel dataModel = getDataModel();
  		final int columnCount = getColumnCount();
  
  		for (int i = 0; i < columnCount; i++) {
  			if (dataModel.isSortable(i)) {
  				return true;
  			}
  		}
  
  		return false;
  	}
docs: Indicates whether the table supports sorting.
  
  @return true if the table and model both support sorting, false otherwise.