QISMATADocumentationProductOpen Studio
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.

InputdescendingResult
[30, 10, 20]false[10, 20, 30]
[30, 10, 20]true[30, 20, 10]
["cat", "apple", "bird"]false["apple", "bird", "cat"]
connections
Starter.prices → Sort.array
Sort.result → Finisher.sortedPrices
Starter.out → Finisher.in

Understand 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 #

  1. Select Starter or Finisher in an editable draft.
  2. In Inspector, find the field list.
  3. Drag the Drag to reorder handle to the required position.
  4. 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.

Qismata documentation