import com.browseengine.bobo.util.IntBoundedPriorityQueue.IntComparator;
public class FacetHitcountComparatorFactory implements ComparatorFactory {
public IntComparator newComparator(FieldValueAccessor valueList,
final int[] counts) {
return new IntComparator(){
public int compare(Integer f1, Integer f2) {
int val = counts[f1] - counts[f2];
if (val==0)
{