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