SORT( )

Sorts the included nodes.

Syntax

SORT( [keyname(s)] [flag(s)] )

Key names may be any key in the included nodes, including system keys.

Flags

  •   -num or -n  : Sorts the results numerically if possible. See numerical_keys in project_settings to set keynames whose values should be parsed as numbers.
  • -reverse or -r : Reverses the sort order