code: public void sort(final int sortCol, final boolean sortAsc) {
  		int[] rowIndexMappings = getTableModel().sort(sortCol, sortAsc);
  		getOrCreateComponentModel().rowIndexMapping = rowIndexMappings;
  
  		setSort(sortCol, sortAsc);
  
  		if (rowIndexMappings == null) {
  			// There's no way to correlate the previously selected row indices
  			// with the new order of rows, so we need to clear out the selection.
  			setSelectedRows(null);
  			setExpandedRows(null);
  		}
  	}
docs: Sort the table data by the specified column.
  
  @param sortCol the column to sort
  @param sortAsc true if sort ascending, otherwise sort descending