private void changeSort() {
		AbstractSortedTableModel<?> abstractModel = (AbstractSortedTableModel<?>) table.getModel();
		TableSortState sortState = abstractModel.getTableSortState();
		int columnCount = abstractModel.getColumnCount();
		ColumnSortState columnSortState = null;
		for (int i = 0; i < columnCount; i++) {
			columnSortState = sortState.getColumnSortState(i);
			if (columnSortState != null) {
				break;
			}
		}
		assertNotNull("No sorted column!!?!?", columnSortState);

		ColumnSortState newColumnState = columnSortState.createFlipState();
		TableSortState newSortState = new TableSortState(newColumnState);
		abstractModel.setTableSortState(newSortState);

		waitForSwing();
		waitForTableModel();
	}
Make sure that either the two given rows are an exact match, or that the row objects that
represent each row are equal()
Ghidra/Features/Base/src/test.slow/java/docking/widgets/table/SelectionManagerTest.java