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
ParameterDescription
leftLeft value.
rightRight value.
Returns

Negative, zero, or positive according to canonical ordering.

Throws
  • QueryTranslationException for values without canonical ordering.
Example
assert QueryRuntime.compareValues("A", "B") < 0