MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / rb_order_compare

Function rb_order_compare

src/cypher/cypher.c:3920–3925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3918}
3919
3920static int rb_order_compare(const void *context, int a, int b) {
3921 const rb_order_ctx_t *ctx = context;
3922 const int *va = ctx->values ? ctx->values + (size_t)a * (size_t)ctx->keys : NULL;
3923 const int *vb = ctx->values ? ctx->values + (size_t)b * (size_t)ctx->keys : NULL;
3924 return rb_order_compare_rows(ctx, ctx->rows[a], ctx->rows[b], va, vb);
3925}
3926
3927static void rb_apply_order_by(result_builder_t *rb, const cbm_return_clause_t *ret) {
3928 if (ret->order_key_count == 0) {

Callers

nothing calls this directly

Calls 1

rb_order_compare_rowsFunction · 0.85

Tested by

no test coverage detected