MashZone NextGen 10.2 | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Writing Mashups in EMML | Transforming Intermediate Results | <sort>
 
<sort>
 
<sort> Examples
This statement sorts the content of a document-type variable or variable fragment based on key expressions and places the result in another variable.
For more information and examples, see <sort> Basics, Sort Numbers or Dates, Sort With Multiple Keys and Sort Directions for Multiple Keys. See also Working Samples for information on sample mashups that use this statement.
Can Contain
Empty
Allowed In
mashup | catch | else | elseif | for | foreach | if | macro | operation | sequence | try | while
Attributes
Name
Required
Description
inputvariable
yes
The name of the input variable to be sorted.
sortexpr
yes
The path to the set of repeating nodes to be sorted.
This must be a literal path. Variable references and dynamic mashup expressions are not supported.
sortkeys
yes
The node, relative to the the sort expression path, that should be used to define sorting.
This must be a literal path. Variable references and dynamic mashup expressions are not supported.
sortdir
The direction for sorting. Variable references and dynamic mashup expressions are not supported.
Valid values include:
*ascending = Sort is ascending. This is the default.
*descending = Sort is descending.
outputvariable
yes
The required variable to accept the output of this statement.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release