Using Java 8, you can easily build the comparator you need:
Arrays.sort(fClasses, Comparator.nullsFirst(Comparator.naturalOrder()));
Use nullsLast
instead if that’s what you want, of course.
Using Java 8, you can easily build the comparator you need:
Arrays.sort(fClasses, Comparator.nullsFirst(Comparator.naturalOrder()));
Use nullsLast
instead if that’s what you want, of course.