@Override
	public boolean isSorted(int column) {
		if (!isSortableTableModel()) {
			return false;
		}

		SortedTableModel sortedModel = (SortedTableModel) table.getModel();
		return column == sortedModel.getPrimarySortColumnIndex();
	}
{@link AutoLookup} implementation for {@link GTable}s
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTableAutoLookup.java