SortRule

View as Markdown

Struct for a sort rule.

Full nameMFiles.SortRule
Proto filemfiles/structs.proto

Fields

FieldTypeNumberDescription
keyint321What 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).
optionsSortRuleFlags2Sort rule flags. Set sort_descending for descending order; the default is ascending.

Used in fields