@Override
	public int compareTo(Reference ref) {
		int result = fromAddr.compareTo(ref.getFromAddress());
		if (result == 0) {
			result = opIndex - ref.getOperandIndex();
			if (result == 0) {
				return toAddr.compareTo(ref.getToAddress());
			}
		}
		return result;
	}
@see java.lang.Comparable#compareTo(Object)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/symbol/MemReferenceImpl.java