@Override
    public void process(boolean validate, boolean documentsOnly) {
        if ( ! validate) return;

        for (SDField field : schema.allConcreteFields()) {
            for (Attribute attribute : field.getAttributes().values()) {
                Sorting sorting = attribute.getSorting();
                if (sorting.getFunction() != Sorting.Function.UCA) {
                    if (sorting.getStrength()!=null && sorting.getStrength() != Sorting.Strength.PRIMARY) {
                        warn(schema, field, "Sort strength only works for sort function 'uca'.");
                    }
                    if (sorting.getLocale() != null && ! "".equals(sorting.getLocale())) {
                        warn(schema, field, "Sort locale only works for sort function 'uca'.");
                    }
                }
            }
        }
    }
Validate conflicting settings for sorting

@author Vegard Havdal
config-model/src/main/java/com/yahoo/schema/processing/SortingSettings.java