ValueTreeRowCollection.Sort
Syntax:
Parameters:
<SortingLine> (required)
List of column names, separated by commas, by which the table will be sorted. After each column name and a space, you can specify the ordering direction. Direction is defined as: "Desc": descending order; "Asc": ascending order. Sorting is ascending by default. The order of column names defines the sorting order. This means that the table initially will be sorted by the column indicated first. Then groups of rows with the same value in this column are sorted by the second column, etc.
<IncludeSubordinates> (optional)
Defines whether collections of subordinate rows (if there are any) will be sorted. True - collections will be sorted.
Default value: False.
<ObjectOfComparison> (optional)
Object for elements comparison. If object of comparison is not specified, comparison is defined by the following rules:
- Elements of non-matching types are compared by their type code;
- Simple type elements are compared by their values;
- Elements of other types are compared by their string representation.
Description:
Availability:
Example:
ContentRows.Sort("Norm Desc", True); |