@Override
	public int compareTo(CategoryRecord arg0) {
		int cmp = type.compareTo(arg0.type);
		if (cmp != 0)
			return cmp;
		if (category == null) {
			if (arg0.category == null) return 0;
			return -1;		// this precedes anything non-null
		}
		if (arg0.category==null)
			return 1;		// this comes after null
		return category.compareTo(arg0.category);
	}
A user-defined category associated with an executable
Specified by a -type- and then the particular -category- (within the type) that
the executable belongs to.
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/description/CategoryRecord.java