Skip to content

Variable: ContentSortOrderSchema

ts
const ContentSortOrderSchema: ZodCustom<
  | "id"
  | "title"
  | string & object
  | "created-date"
  | "-created-date"
  | "modified-date"
  | "-modified-date"
  | "-id"
  | "child-position"
  | "-child-position"
  | "-title", 
  | "id"
  | "title"
  | string & object
  | "created-date"
  | "-created-date"
  | "modified-date"
  | "-modified-date"
  | "-id"
  | "child-position"
  | "-child-position"
| "-title">;

Defined in: src/v2/models/contentSortOrder.ts:8

The sort fields for hierarchical content types. The default sort direction is ascending. To sort in descending order, append a - character before the sort field. For example, fieldName or -fieldName.