2020.2

Table Of Contents
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).
All the parameters to this method except for the first one are optional. If a Name is specified, it
must be valid for every sub-node. If, for example, the specified field is not found in a sub-node,
or a numeric sort is performed and one of the values is not numeric (i.e. consists of only decimal
characters, no thousand or decimal separator allowed), the method will fail.
If a sub-node contains multiple occurrences of fields with the specified name, only the first
occurrence will be considered.
String comparisons are done without regards to the case (case-insensitive) using the Windows
Win32 API function CompareString(LOCALE_USER_DEFAULT, NORM_IGNORECASE, ...).
Parameters:
Name
Name of the field or attribute contained in each sub-node whose value will be used as the first
sort criteria. If it is an attribute instead of a field, this needs to be specified in the Flags
parameter.
Flags (optional)
Set of flags that modify how the sorting on Name is done.
Name2 (optional)
Name of the field or attribute contained in each sub-node whose value will be used as the
second sort criteria. If it is an attribute instead of a field, this needs to be specified in the
Flags2 parameter.
Page 227