static Comparator calculatedFieldComparator(fO f) { ret new Comparator() { public int compare(A a, A b) { ret cmp(callF(f, a), callF(f, b)); } }; }