Compare numbers
Compares numeric values
Evaluation
This expression evaluates to a function of the form:
(a, b) -> long
The function is consistent with sort order semantics of the Sort step.
Processing
Arguments a and b are compared and one of the following values is returned:
0ifaandbrepresent the same numeric value-1ifais less thanb1ifais greater thanb
An error is thrown if either a or b is not a long, double, or nil
Settings
| Name | Type | Description |
|---|---|---|
Ordering |
string |
Defines how to sort
|