@Override
		public int compare(Function f1, Function f2) {
			Address a1 = f1.getEntryPoint();
			Address a2 = f2.getEntryPoint();
			Address address2CompatibleWith1 =
				SimpleDiffUtility.getCompatibleAddress(program2, a2, program1);
			return a1.compareTo(address2CompatibleWith1);
		}
Compares the function tags in two programs. 

Two sets of tags are considered equal if they contain the name and comment
attributes.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramDiff.java