@Override
	public boolean isSortedAscending() {
		if (!isSortableTableModel()) {
			return false;
		}

		SortedTableModel model = (SortedTableModel) table.getModel();
		int primarySortColumnIndex = model.getPrimarySortColumnIndex();
		TableSortState columnSortState = model.getTableSortState();
		ColumnSortState sortState = columnSortState.getColumnSortState(primarySortColumnIndex);
		return sortState.isAscending();
	}
{@link AutoLookup} implementation for {@link GTable}s
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTableAutoLookup.java