private boolean isValidSortState(TableSortState tableSortState, SortedTableModel model) {
		int columnCount = model.getColumnCount();
		int sortedColumnCount = tableSortState.getSortedColumnCount();
		if (sortedColumnCount > columnCount) {
			return false; // more columns than we have
		}

		for (int i = 0; i < columnCount; i++) {
			ColumnSortState state = tableSortState.getColumnSortState(i);
			if (state == null) {
				continue; // no sort state for this column--nothing to validate
			}

			if (!model.isSortable(i)) {
				return false; // the state wants to sort on an unsortable column
			}
		}

		return true;
	}
Gets the most unique identifier possible for a given column.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/TableColumnModelState.java