Document Developer - instructions > Making the document dynamic > Sorting data

Sorting data
When using a repeater to render data from a Message, you can specify sorting criteria for the data. You create one or more sort keys for the repeater, where each key has the following properties:
XPath – the XPath to the key used for sorting. For example a Message field or a variable array.
Type – whether the key values are textual or numeric.
Order – whether the sorting is done in ascending or descending order.
Locale – if the Type is Text, language and region specific rules can be applied to the sorting. For example, to sort Swedish Å, Å, Ö characters you must specify Swedish (sv-SE) locale.
To sort Repeater data
1
2
3
Click to enlarge
Figure 51
4
 
*
5
Optionally, edit the Type, Order and Locale properties as appropriate, or leave as default.
6
Note:
 
*
*[name()=$key_name]
OpenText StreamServe 5.6 Updated: 2013-03-01