@@ -0,0 +1,384 @@
+package de.tblsoft.search.response;%0A%0Aimport java.util.Comparator;%0A%0A/**%0A * Created by tbl on 31.12.17.%0A */%0Apublic class FacetValueCountComparator implements Comparator%3CFacetValue%3E %7B%0A    @Override%0A    public int compare(FacetValue v1, FacetValue v2) %7B%0A        if(v1 == null %7C%7C v2 == null) %7B%0A            return 0;%0A        %7D%0A        return v1.getCount().compareTo(v2.getCount());%0A    %7D%0A%7D%0A

add a comparator for facet counts