MCPcopy Create free account
hub / github.com/documentdb/documentdb / BsonOrderby

Function BsonOrderby

pg_documentdb/src/query/bson_dollar_operators.c:2240–2246  ·  view source on GitHub ↗

* Applies the $sort runtime projection. * ValidateSort is to handle a bug with $first where it passes the expression * as one of the sort specs */

Source from the content-addressed store, hash-verified

2238 * as one of the sort specs
2239 */
2240Datum
2241BsonOrderby(pgbson *document, pgbson *filter, bool validateSort, const
2242 char *collationString)
2243{
2244 CustomOrderByOptions options = CustomOrderByOptions_Default;
2245 return BsonOrderbyCore(document, filter, collationString, validateSort, options);
2246}
2247
2248
2249/*

Callers 1

BsonOrderTransitionFunction · 0.85

Calls 1

BsonOrderbyCoreFunction · 0.85

Tested by

no test coverage detected