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:
0
ifa
andb
represent the same numeric value-1
ifa
is less thanb
1
ifa
is 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
|