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