---
title: ProductCollectionSortKeys - Storefront API
description: >
  Sort options for products within a
  [`Collection`](/docs/api/storefront/2026-04/objects/Collection). Used by the
  [`products`](/docs/api/storefront/2026-04/objects/Collection#field-Collection.fields.products)
  connection to order results by best-selling, price, title, creation date, or
  the collection's default and manual ordering.


  > Note: The
  [`RELEVANCE`](/docs/api/storefront/2026-04/enums/ProductCollectionSortKeys#enums-RELEVANCE)
  key applies only when you specify a search query.
api_version: 2026-04
api_name: storefront
type: enum
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/enums/ProductCollectionSortKeys
  md: >-
    https://shopify.dev/docs/api/storefront/latest/enums/ProductCollectionSortKeys.md
---

# Product​Collection​Sort​Keys

enum

Sort options for products within a [`Collection`](https://shopify.dev/docs/api/storefront/2026-04/objects/Collection). Used by the [`products`](https://shopify.dev/docs/api/storefront/2026-04/objects/Collection#field-Collection.fields.products) connection to order results by best-selling, price, title, creation date, or the collection's default and manual ordering.

***

**Note:** The \<a href="/docs/api/storefront/2026-04/enums/ProductCollectionSortKeys#enums-RELEVANCE">\<code>\<span class="PreventFireFoxApplyingGapToWBR">R\<wbr/>E\<wbr/>L\<wbr/>E\<wbr/>V\<wbr/>A\<wbr/>N\<wbr/>C\<wbr/>E\</span>\</code>\</a> key applies only when you specify a search query.

***

## Valid values

* BEST\_​SELLING

  Sort by the `best-selling` value.

* COLLECTION\_​DEFAULT

  Sort by the `collection-default` value.

* CREATED

  Sort by the `created` value.

* ID

  Sort by the `id` value.

* MANUAL

  Sort by the `manual` value.

* PRICE

  Sort by the `price` 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.

***

## Fields

* [Collection.products(sortKey)](https://shopify.dev/docs/api/storefront/latest/objects/Collection#field-Collection.fields.products.arguments.sortKey)

  ARGUMENT

  A group of products [organized by a merchant](https://help.shopify.com/manual/products/collections) to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria.

  Query a collection's products with [filtering options](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products) like availability, price range, vendor, and tags. Each collection includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information, an optional [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image), and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield).

***

## Map

### Arguments with this enum

* [Collection.products(sortKey)](https://shopify.dev/docs/api/storefront/latest/objects/Collection#field-Collection.fields.products.arguments.sortKey)
