@Override
	public int compareTo(SymbolPath o) {
		SymbolPath otherParentPath = o.getParent();
		int result = 0;
		if (parentPath == null) {
			if (otherParentPath != null) {
				return -1;
			}
		}
		else if (otherParentPath == null) {
			return 1;
		}
		else {
			result = parentPath.compareTo(otherParentPath);
		}
		if (result == 0) {
			result = symbolName.compareTo(o.getName());
		}
		return result;
	}
Some existing code might include "Global" at the beginning of their path.  This
method will eliminate any "Global" at the beginning of the path.

@param path the path to check for "Global"
@return the given path if it is not global; otherwise returns null.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/util/SymbolPath.java