--- title: ProductSortKeys - Storefront API description: The set of valid sort keys for the Product query. api_version: 2025-10 api_name: storefront type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/enums/ProductSortKeys md: https://shopify.dev/docs/api/storefront/latest/enums/ProductSortKeys.md --- # Product​Sort​Keys enum The set of valid sort keys for the Product query. ## Valid values * BEST\_​SELLING Sort by the `best_selling` value. * CREATED\_​AT Sort by the `created_at` value. * ID Sort by the `id` value. * PRICE Sort by the `price` value. * PRODUCT\_​TYPE Sort by the `product_type` 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. * VENDOR Sort by the `vendor` value. *** ## Fields * [Query​Root.​products](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-products) ARGUMENT The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. * [products.​sort​Key](https://shopify.dev/docs/api/storefront/latest/queries/products#field-sortKey) QUERY *** ## Map ### Queries with this enum * \[products.sortKey](https://shopify.dev/docs/api/storefront/latest/queries/products#field-sortKey) ### Arguments with this enum * <-|[Query​Root.products(sortKey)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-products)