static void sortByIndex2(LL l, final int index) { sort(l, new Comparator>() { public int compare(L a, L b) { ret cmp(a.get(index), b.get(index)); } }); }