int dbSelection::exactKeyCmp(void const* a, void const* b) { dbGetTie ta, tb; dbSortContext* ctx = sortThreadContext.get(); return compare(ctx->db->getRow(ta, ((dbSortRecord*)a)->oid), ctx->db->getRow(tb, ((dbSortRecord*)b)->oid), ctx->order); }
static int compare(ObjectRef* a, ObjectRef* b) { dbSortContext* ctx = sortThreadContext.get(); return dbSelection::compare(a->oid, b->oid, ctx->order); }
static int compareRecords(void const* a, void const* b) { dbSortContext* ctx = sortThreadContext.get(); return dbSelection::compare(*(oid_t*)a, *(oid_t*)b, ctx->order); }