Skip to main content

compare_aggregate_values

Function compare_aggregate_values 

Source
pub fn compare_aggregate_values(a: &Value, b: &Value) -> Ordering
Expand description

compareAggregateValues: numbers before strings, as in JS and SQLite, for the leaves of a JSON path; otherwise compareValues. Values JS can’t compare, such as the objects of a json column without a path, fail the query as JS’s throw does. Equal values compare equal first, as JS’s a === b does for one row’s own value.