sort-list

Alphabetically sort a list in ascending or descending order.

TIP: Numbers are treated as text (e.g. list order will be 1,12,2 instead of 1,2,12).

TIP: Use before or after unique-list-items adaptor to get a sorted list without duplicates.

Arguments

Inputs:

list: The list you want to sort.

reverse: Specifies whether to sort the list elements in descending order (i.e. Z-A). Defaults to false (defaults to sorting in ascending order). Change to 'true' if you want to sort in descending order (reverse-alphabetic order).

Output:

list: The sorted list, containing the same number of elements as the input list.

Examples

First example

Second example

Possible use cases

  • Create an alphabetic reference of names.

Last updated