---
title: "CollectionSortKeys"
description: "The set of valid sort keys for the Collection query."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/products/enums/collection-sort-keys'
  md: 'https://developer.shopline.com/docs/storefront-api/products/enums/collection-sort-keys.md'
---
# CollectionSortKeys

The set of valid sort keys for the Collection query.

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

## Type Signature

`CollectionSortKeys`

## Values

* `TITLE`

  Sort by the `title` value.

* `UPDATED_AT`

  Sort by the `updated_at` value.

* `ID`

  Sort by the `id` value.

## Schema Definition

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

## Argument from

* [Query](https://developer.shopline.com/docs/storefront-api/products/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/storefront-api/overview.md#status-and-error-codes).

