Sorter
The sorter processor is used to sort data.
Configuration Parameters
|
Parameter |
Description |
|---|---|
|
Dataset |
Data to be sorted, either from the previous node or custom input, must be in JSONArray format. You can reference data from previous nodes. For details, see Referencing Variables. |
|
Path |
Parameter used for sorting, for example, $.id. You can reference data from previous nodes. For details, see Referencing Variables. |
|
Sort By |
Select a sorting mode. Options are Ascendingly and Descendingly. |

Example
Example 1
Input:
Dataset: [{"id":12},{"id":6},{"id":58}]
Parameter path: $.id
Order: Ascending
Output:
[{"id":6},{"id":12},{"id":58}]
Example 2
Input:
Dataset: {"data":[{"id":12, "name":"name1"},{"id":6, "name":"name2"},{"id":58, "name":"name3"}]}
Parameter path: $.data[*].id
Order: Ascending
Return Value
{"data":[{"id":6,"name":"name2"},{"id":12,"name":"name1"},{"id":58,"name":"name3"}]}
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.