public static int compareWithNullValues(Object o1, Object o2) {
		// If both values are null return 0
		if (o1 == null && o2 == null) {
			return 0;
		}

		if (o1 == null) { // Define null less than everything.
			return -1;
		}

		return 1; // o2 is null, so the o1 comes after
	}
A utility class for tables to use when sorting
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/TableComparators.java