public native static compareOrderedValues( left as Object, right as Object, descending as Boolean, nullPlacement as Int ) as Int
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.
| 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. |
Negative, zero, or positive according to the complete ordering.
assert QueryRuntime.compareOrderedValues(20, 10, true, 0) < 0