Skip to main content

Sort list

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Sort the items of a list. This command allows you to arrange list elements in either ascending or descending order, making it easier to organize and process list data within your workflow.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

List to sort

Select a list variable

-

Yes

The list must be defined before using this command

Sort by

Choose to arrange the list in ascending or descending order

Descending, Ascending

Yes

Descending sorts from highest to lowest; Ascending sorts from lowest to highest

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in the "List to sort" parameter by clicking the {x} icon to select from previously defined list variables. The list variable must be properly initialized before using this command. Make sure the variable you select contains a valid list that can be sorted.


Notes

  • The list will be sorted in place, meaning the original list variable will be modified with the sorted values.

  • For text values, sorting is case-sensitive. Capital letters will be sorted before lowercase letters.

  • For lists containing mixed data types, the sorting behavior may vary depending on the types of elements in the list.

  • Empty lists can be sorted but will remain empty after the operation.

Did this answer your question?