SortRule
Struct for a sort rule.
| Full name | MFiles.SortRule |
|---|---|
| Proto file | mfiles/structs.proto |
Fields
| Field | Type | Number | Description |
|---|---|---|---|
key | int32 | 1 | What to sort by: a property definition ID (0 or greater; the property must be searchable and not multi-line text), or a special key: -1 (name or title), -13 (created), -14 (last modified), or -102 (object ID, ascending only, not with a full-text condition). |
options | SortRuleFlags | 2 | Sort rule flags. Set sort_descending for descending order; the default is ascending. |
Used in fields
SortRuleValueArray.values-- Sort rules. The first rule has the highest presedence meaning that it is the primary sort rule.