Tabular Operators
order operator
Sort the rows of the input dataset into order by one or more fields.
Syntax
| order by Field [asc], Field2 [desc]
Arguments
name | type | description |
---|---|---|
Field | string | Field of dataset by which to sort. The type of the values must be numeric, date, time or string. |
asc | expressoin | Sort by into ascending order, low to high |
desc | expression | descending high to low |
Example
['http-logs']| order by ['geo.country'] asc, method desc