static L> sortBySecondOfPairsDesc_inPlace(L> l) { sort(l, new Comparator>() { public int compare(Pair a, Pair b) { ret stdcompare(b.b, a.b); } }); ret l; }