public static FieldComparator create(Sorting sorting) {
        if (sorting == null) return null;
        return new FieldComparator(sorting);
    }
Creates a comparator given a sorting, or returns null if the given sorting is null
container-search/src/main/java/com/yahoo/search/result/FieldComparator.java