IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Sort Processor
editSort Processor
editSorts the elements of an array ascending or descending. Homogeneous arrays of numbers will be sorted numerically, while arrays of strings or heterogeneous arrays of strings + numbers will be sorted lexicographically. Throws an error when the field is not an array.
Table 31. Sort Options
Name | Required | Default | Description |
---|---|---|---|
|
yes |
- |
The field to be sorted |
|
no |
|
The sort order to use. Accepts |
{ "sort": { "field": "field_to_sort", "order": "desc" } }