klyn.data.internal.QueryRuntime.compareOrderedValues
method

    public native static compareOrderedValues(
    left as Object,
    right as Object,
    descending as Boolean,
    nullPlacement as Int
    ) as Int

Description

Compares two canonical scalar values using one complete ordering item.

Explicit null placement is independent from the sort direction. Provider default placement follows ascending null-first and descending null-last.

Parameters

Parameter | Description
--- | ---
`left` | Left value.
`right` | Right value.
`descending` | True for descending non-null values.
`nullPlacement` | Zero for provider default, one for first, two for last.

Returns

Negative, zero, or positive according to the complete ordering.

Example

    assert QueryRuntime.compareOrderedValues(20, 10, true, 0) < 0