List<SortCondition> conditions = new ArrayList<SortCondition>();
conditions.add(new SortCondition(new ExprVar("8"), Query.ORDER_ASCENDING));
conditions.add(new SortCondition(new ExprVar("1"), Query.ORDER_ASCENDING));
conditions.add(new SortCondition(new ExprVar("0"), Query.ORDER_DESCENDING));
BindingComparator comparator = new BindingComparator(conditions);
List<Binding> sorted = new ArrayList<Binding>();
SortedDataBag<Binding> db = new SortedDataBag<Binding>(
new ThresholdPolicyCount<Binding>(threshold),