public static <T> Comparator<T> getNullSafeCaseInsensitiveComparator(final Function<T, String> extractor) {
        return Comparator.nullsFirst(
                Comparator.comparing(
                        extractor,
                        Comparator.nullsFirst(String.CASE_INSENSITIVE_ORDER)));
    }
Creates a null safe case-insensitive comparator that puts nulls first.
stroom-util-shared/src/main/java/stroom/util/shared/CompareUtil.java