scope conceptsWithFieldGreaterThan_sorted .
sbool #verbose;
static Cl nuLike conceptsWithFieldGreaterThan_sorted(Class c, S field, O value) {
ret conceptsWithFieldGreaterThan_sorted(db_mainConcepts(), c, field, value);
}
static Cl conceptsWithFieldGreaterThan_sorted(Concepts concepts, Class c, S field, O value) {
// indexed
IFieldIndex index = concepts.getFieldIndex(c, field);
if (index cast ConceptFieldIndexDesc)
ret reverseInPlace(index.objectsWithValueGreaterThan(value));
// filter manually
if (verbose)
print("conceptsWithFieldGreaterThan: table scan of " + c + " for field " + field);
ret sortByFieldInPlace(field, objectsWhereFieldGreaterThan(concepts.list(c), field, value));
}