@Override
		public int compare(Symbol s1, Symbol s2) {
			if (s1.isPrimary()) {
				return s2.isPrimary() ? 0 : -1;
			}
			else if (s2.isPrimary()) {
				return 1;
			}
			return s1.getName(true).compareTo(s2.getName(true));
		}
Symbol sort comparator for use on a group of symbols at a single address.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramDiff.java