Skip to main content

compareValues

@webda/ql


Function: compareValues()

compareValues(a, b): number

Defined in: packages/ql/src/aggregation.ts:28

Compare two values the way every backend orders aggregated rows

null / undefined first, then numbers, strings (code unit order), booleans, then anything else by its JSON representation.

Parameters​

a​

unknown

first value

b​

unknown

second value

Returns​

number

negative, zero or positive