Skip to content

Variable: ContentSortOrderSchema

ts
const ContentSortOrderSchema: ZodEnum<{
  -child-position: "-child-position";
  -created-date: "-created-date";
  -id: "-id";
  -modified-date: "-modified-date";
  -title: "-title";
  child-position: "child-position";
  created-date: "created-date";
  id: "id";
  modified-date: "modified-date";
  title: "title";
}>;

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

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.