6465666768697071727374
int[] indices = new int[sz]; for (int i = 0; i < indices.length; i++) { indices[i] = i; } (new ArrayHeapIntSorter()).sort(indices, new IntComparator() { public int compare(int arg0, int arg1) { return starts.get(arg0) - starts.get(arg1); } });