svoid gazelle_sortBeforeCommit(L l) { sort(l, new Comparator { public int compare(GazelleTree a, GazelleTree b) { int c = ai_goodBadToInt(a.prediction) - ai_goodBadToInt(b.prediction); if (c != 0) ret c; c = gazelle_historyLevelRequired(a.rule()) - gazelle_historyLevelRequired(b.rule()); ret c; } }); }