klyn.data.internal.QueryRuntime.compareValues
method

    public native static compareValues(left as Object, right as Object) as Int

Description

Compares two boxed canonical scalar values.

Parameters

Parameter | Description
--- | ---
`left` | Left value.
`right` | Right value.

Returns

Negative, zero, or positive according to canonical ordering.

Throws

- QueryTranslationException for values without canonical ordering.

Example

    assert QueryRuntime.compareValues("A", "B") < 0