Skip to main content

Sort List

Command description​

Sorts a list in place in ascending or descending order. No new list variable is created.

Command Input Parameters​

input parametersInput parameter typeDescription
ListlistList object to be sorted
Sort OrderenumAscending, Descending

Command Output Parameters​

None.

Note​

All items must be mutually comparable or sorting will fail. A list containing only numbers or only strings can normally be sorted; a list that mixes numbers and strings cannot.

AI Workflow Generation Notes​

  • The command sorts the list in place and has no output variable. All items must be mutually comparable.