static L> pairsSortedByADesc(Collection> l) { ret sortedByComparator(l, new Comparator>() { public int compare(Pair a, Pair b) { ret cmp(b.a, a.a); } }); }