private void saveSortedColumnState(Element xmlElement) {
		TableModel tableModel = table.getModel();
		if (!(tableModel instanceof SortedTableModel)) {
			return; // nothing to save
		}

		SortedTableModel sortedTableModel = (SortedTableModel) tableModel;
		TableSortState tableSortState = sortedTableModel.getTableSortState();
		Element sortStateElement = tableSortState.writeToXML();
		xmlElement.addContent(sortStateElement);
	}
Gets the most unique identifier possible for a given column.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/TableColumnModelState.java