Sort Node
From Moving Pictures
The sort node is used to sort an array.
| Attribute | Description |
|---|---|
| name | This is a required attribute that defines the return variable of this node. |
| direction | This attribute defines the sort direction. Valid settings: "desc", "descending", "asc" or "ascending". Default is ascending. |
| by | This is a required attribute that defines the variable to sort by. |
Example
The following example sorts the movies array by the distance variable.
<sort name='movies' by='distance'/>