@Override
	public int compareTo(CategoryPath other) {
		if (isRoot()) {
			return other.isRoot() ? 0 : -1;
		}

		if (other.isRoot()) {
			return 1;
		}

		int result = parent.compareTo(other.getParent());

		if (result == 0) {
			result = name.compareTo(other.getName());
		}
		return result;
	}
Returns array of names in category path.
@return array of names
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/CategoryPath.java