---
title: "CollectionSortKeys"
description: "The valid set of sorting keys for Collection queries."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/enums/collection-sort-keys'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/enums/collection-sort-keys.md'
---
# CollectionSortKeys

The valid set of sorting keys for Collection queries.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Enum

## Type Signature

`CollectionSortKeys`

## Values

* `ID`

  Sort in ascending order by `id`.

* `TITLE`

  Sort in ascending order by `title`.

* `UPDATED_AT`

  Sort in ascending order by `updated_at`.

## Schema Definition

```graphql
enum CollectionSortKeys { 
	ID 
	TITLE 
	UPDATED_AT  
}
```

## Argument from

* [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md).collections

  List of collections the product belongs to.

* [Query](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/queries/collections.md).collections

  返回分类列表

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

