sbool conceptsSortedByFieldDesc_verbose;

static <A extends Concept> Cl<A> nuLike conceptsSortedByFieldDesc(Class<A> c, S field) {
  ret conceptsSortedByFieldDesc(db_mainConcepts(), c, field);
}

static <A extends Concept> Cl<A> conceptsSortedByFieldDesc(Concepts concepts, Class<A> c, S field) {
  // indexed
  IFieldIndex<A, O> index = concepts.getFieldIndex(c, field);
  if (index cast ConceptFieldIndexDesc)
    ret (Cl<A>) asList(index.objectIterator());
    
  // sort manually
  if (conceptsSortedByFieldDesc_verbose)
    print("conceptsSortedByFieldDesc_verbose: Manual sort of " + c + " for " + field);
  ret sortedByFieldDesc(field, concepts.list(c));
}