2021.2

Table Of Contents
Returns the number of pages under the current node that are set to be part of the output, i.e. that
have their Selected property set to true, as well as all of their parents.
Returns:
The number of such nodes, if any. If the current node is not selected or one of its parents is not,
it returns 0.
Sort(const String Name,
optional TSortFlags Flags,
optional const String Name2,
optional TSortFlags Flags2,
optional const String Name3,
optional TSortFlags Flags3)
Not available in MetaJob
Sorts the sub-nodes contained in the node according to a number of sort criteria. Unselected
sub-nodes will be placed at the end, after all the selected sub-nodes, in the order in which they
were placed prior to the sort.
Each of the three sort criteria can be modified by specifying one or more flags.
Value Meaning
1 The name refers to an Attribute rather than a field.
2 The sort is done in descending order (i.e. the highest to the lowest).
4 The field is an integer numeric value.
Note
In an Active Script environment, such as the Run Script task, you must work with the
numerical values.
In environments where the flags are defined, you may instead use sfAttribute (= 1),
sfDescending (= 2), and sfNumeric (= 4).
Page 230