Sort node
When you are working in the TrueSight Orchestration Development Studio XSLT transform editor, the Sort node is used to sort the output.
This node is always used within a For Each or an Apply Templates node. The sort options are applied on a per position basis within the value. If there is a conflict, priority is given to the case preference.
The following table lists the Sort node properties.
Field | Description | Required |
|---|---|---|
Select | The XPath expression that defines the node or node set on which to sort. If an XPath statement is not defined, the default node is the element. | No |
Language | Defines the language to be used for the sort. | No |
Date Type | Defines the data type of the data to be sorted. The default value is 'text.' Valid values: text, number | No |
Ascending Sort | Indicates whether the data sort in ascending order. The default value is checked or true. | No |
Upper Case First | Indicates whether upper case letters sorts before lower case letters. The default value is checked or true. | No |
XPath Helpers (Groups / Functions) | The XPath helpers, Groups and Functions are used to facilitate the formation of basic XPath statements. | NA |
The follow items illustrate output based on different selections in the Property Panel for a Sort node.
- Data Type - text vs. number
For the following sample: 10,2,1
The output order would be 1,10,2 with a data type of 'text' and it would be 1,2,10 with a data type of 'number'. - Upper Case First - checked vs. unchecked
For the following sample: Abc, abc, aBc
The output would be Abc, aBc, abc with the Upper first selection checked and it would be abc, aBc, Abc with the Upper first selection unchecked.