@Override
		public int compareTo(ExternalReferenceCount other) {
			int diff = other.rank - rank;
			if (diff != 0) {
				return diff;
			}
			diff = other.refCount - refCount;
			if (diff != 0) {
				return diff;
			}
			// Sort functions before labels, SYmbolType IDs: CODE=0, FUNCTION=5
			diff = other.getSymbolType().getID() - getSymbolType().getID();
			if (diff != 0) {
				return diff;
			}
			return getSymbol().getName(true).compareTo(other.getSymbol().getName(true));
		}
Given a symbol for a specified program, get the corresponding symbol from the
specified otherProgram.
<br>
In the case of external locations this performs an exact match based upon symbol name, 
namespace and symbol type.

@param symbol symbol to look for
@param otherProgram other program
@return corresponding symbol for otherProgram or null if no such symbol exists.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/SimpleDiffUtility.java