# Rule action: Sort list

Used for: sorting a list of numbers or letters/words (alphabetically).

Used in: "THEN"-statements and "ELSE"-statements.

The name of the rule pretty much explains itself: if you have a field that contains a list, this rule will sort it for you. You can either sort ascending \[a-z or 0-9] or descending \[z-a or 9-0].

![channable\_rules\_what-does-each-rule-do-rule-sort-list-0.png](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/DveDyboo3MRQVraZ84pz/channable_rules_what%20does%20each%20rule%20do%20rule%20sort%20list%200.png)

The result of both ways of sorting is shown below:

![channable\_rules\_what-does-each-rule-do-rule-sort-list-1.png](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/2Pc2dYvIf2o9bSkoGebD/channable_rules_what%20does%20each%20rule%20do%20rule%20sort%20list%201.png)
