public boolean isReverseOf(TableSortingContext<T> otherContext) {
		int sortedColumnCount = sortState.getSortedColumnCount();
		if (sortedColumnCount != 1) {
			return false; // can only reverse a single column sort
		}

		int otherSortedColumnCount = otherContext.sortState.getSortedColumnCount();
		if (sortedColumnCount != otherSortedColumnCount) {
			return false;
		}

		Iterator<ColumnSortState> iterator = sortState.iterator();
		ColumnSortState onlyItem = iterator.next();
		int columnIndex = onlyItem.getColumnModelIndex();

		Iterator<ColumnSortState> otherIterator = otherContext.sortState.iterator();
		ColumnSortState otherOnlyItem = otherIterator.next();
		int otherColumnIndex = otherOnlyItem.getColumnModelIndex();

		// must be the same column
		if (columnIndex != otherColumnIndex) {
			return false;
		}

		// must be opposite directions
		return onlyItem.getSortDirection() != otherOnlyItem.getSortDirection();
	}
Returns true if there are no columns marked as sorted, which represents a 'no sort' state

@return true if there are no columns sorted
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/TableSortingContext.java