Skip navigation links
Expressively and easily automate your text documents with TExpressive!
Menu
TExpressive
Expressively and easily automate your text documents with TExpressive!

SortSubParams function

Sorts the subparameters of the given parameter in the specified way.

Remarks

  • If the parameter doesn't exist yet, an error is given.
  • The names of the subparameters will not be changed, only their index numbers.
  • Sorting by name and value is not case sensitive.

Arguments

Param
The name of the parameter to sort the subparameter(s) of.
OrderBy (optional)
The order in which the subparameters are sorted.  The default order is ascending by value.  Supported options:
  • "NameAsc" (by name, ascending order)
  • "ValueAsc" (by value, ascending order)
  • "NameDesc" (by name, descending order)
  • "NumberDesc" (by number, descending order)
  • "ValueDesc" (by value, descending order)
Recurse (optional flag)
Whether to also sort any subparameters of the direct subparameters themselves, etc. .