USER GUIDE
Sort arrays and reorder fields
Sort numbers or strings, reverse an existing list, or arrange the fields shown on Starter and Finisher.
Sort #
Add Sort (array.sort), connect the array input, and use result downstream. Set descending to false for ascending order or true for descending order. No execution connection is required.
| Input | descending | Result |
|---|---|---|
| [30, 10, 20] | false | [10, 20, 30] |
| [30, 10, 20] | true | [30, 20, 10] |
| ["cat", "apple", "bird"] | false | ["apple", "bird", "cat"] |
Starter.prices → Sort.array
Sort.result → Finisher.sortedPrices
Starter.out → Finisher.inUnderstand the comparison rules #
- When every item is a number, sorting is numeric.
- If strings are present, values are compared as strings. For example, ["2", "10", "1"] becomes ["1", "10", "2"].
- String comparison is case-sensitive and not locale-aware.
- Duplicate values are retained.
- Objects, nested arrays, null, and booleans are not supported. Sorting objects by a field such as score is not implemented.
Reverse #
Reverse (array.reverse) reverses the current sequence: [30, 10, 20] becomes [20, 10, 30]. Connect array and read result. It does not compare values. Use Sort with descending: true to order values from largest to smallest.
Reorder Starter and Finisher fields #
- Select Starter or Finisher in an editable draft.
- In Inspector, find the field list.
- Drag the Drag to reorder handle to the required position.
- Wait for the draft to save.
This changes the field order in the editor. API fields are still addressed by name. It does not sort the contents of an array.