XenoGuard 4.0 Documentation
Parameter-List Sort
ActionStep Reference » Programming » Parameter List » Parameter-List Sort
The ActionStep Sort arranges the content of a parameter list in ascending or descending order.
[-] Hide
- Open the Programming node in the Workspace Explorer.
- Open the Parameter List node, select the Sort ActionStep.
Parameters:
The ActionStep has the following input parameters:
name |
Description
|
---|---|
Sort
|
The source list to sort the data from.
Allowed Context Scope [Action] Allowed Values [Parameters, Result List] |
Orders
|
The order of the data in the list.
The parameters for the "Order" sub-branch:
Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum] |
Description for the values of ORDER AS parameter:
Value | Description |
---|---|
ASC
|
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. |
Results:
The ActionStep returns the following results:
name
|
description
|
---|---|
Result
|
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):
In this example, text files stored in a directory are retrieved and sorted based on their file size in ascending order. After sorting the list, it is then saved to a text file in local storage. Subsequently, a notice displaying the number of lines stored in the text file is presented in a
Message Box.