@Override
      public int compare(Pair<Object, MatchResult> o1, Pair<Object, MatchResult> o2) {
        int result = modelComparator.compare(o1.first, o2.first);
        return result != 0 ? result : o1.second.compareTo(o2.second);
      }
@Override
      public int compare(Pair<Object, MatchResult> o1, Pair<Object, MatchResult> o2)