XenoGuard Documentation


Actions » Programming » Parameter List » Sort 

The action Sort arranges the content of a parameter list in ascending or descending order.

[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Parameter List node, select the Sort action.


The action has the following input parameters:

name Description
The source list to sort the data from.

Allowed Context Scope [Action]
Allowed Values [Parameters, Result List]
The order of the data in the list.

The parameters for the "Order" sub-branch:

  • Column - the column name of the list to be sorted
  • Order As - ascending or descending order
  • Data Type - string or number
Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types
 [Variable, Parameter, Enum]

Description for the values of ORDER AS parameter:

Value Description
Sort the given list from the lowest to the highest value or ascending order.
DESC Sort the given list from the highest to the lowest value or descending order.


The action returns the following results:

The sorted content from a parameter list based on the specified order..

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types
 [Variable, Parameter]

Example 1 (Sort and store a dictionary list as text file):

This example retrieves the text files stored in a directory and sorted based on the File Size in ascending order. After the list has been sorted, it is then stored in a text file in local storage. A notice on the number of lines stored in the text file is displayed via Message Box.

See other Parameter List operations:

Get Row