final int keyidx = i + 1;
if(o1[keyidx] instanceof Item) {
final Item it1 = (Item) o1[keyidx];
final Item it2 = (Item) o2[keyidx];
final OrderSpec spec = orderSpecs.get(i);
cmp = spec.compare(it1, it2, dynEnv);
} else {
final OrderSpec spec = orderSpecs.get(i);
cmp = spec.compare(o1[keyidx], o2[keyidx]);
}
if(cmp != 0) {