// f: A -> Comparable
static L sortByCalculatedFieldDesc_inPlace(L l, fO f) {
sort(l, new Comparator() {
public int compare(A b, A a) {
ret stdcompare((O) callF(f, a), (O) callF(f, b));
}
});
ret l;
}
static L sortByCalculatedFieldDesc_inPlace(O f, L c) {
ret sortByCalculatedFieldDesc_inPlace(c, f);
}