--- title: CollectionSortKeys - Storefront API description: The set of valid sort keys for the Collection query. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/CollectionSortKeys md: https://shopify.dev/docs/api/storefront/unstable/enums/CollectionSortKeys.md --- # Collection​Sort​Keys enum The set of valid sort keys for the Collection query. ## Valid values * ID Sort by the `id` value. * RELEVANCE Sort by relevance to the search terms when the `query` parameter is specified on the connection. Don't use this sort key when no search query is specified. * TITLE Sort by the `title` value. * UPDATED\_​AT Sort by the `updated_at` value. *** ## Fields * [Query​Root.​collections](https://shopify.dev/docs/api/storefront/unstable/objects/QueryRoot#field-QueryRoot.fields.collections.arguments.sortKey) ARGUMENT The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. * [collections.​sort​Key](https://shopify.dev/docs/api/storefront/unstable/queries/collections#arguments-sortKey) QUERY *** ## Map ### Queries with this enum * \[collections.sortKey](https://shopify.dev/docs/api/storefront/unstable/queries/collections#arguments-sortKey) ### Arguments with this enum * <-|[Query​Root.collections(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/QueryRoot#field-QueryRoot.fields.collections.arguments.sortKey)