--- title: ProductMediaSortKeys - Storefront API description: The set of valid sort keys for the ProductMedia query. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/ProductMediaSortKeys md: https://shopify.dev/docs/api/storefront/unstable/enums/ProductMediaSortKeys.md --- # Product​Media​Sort​Keys enum The set of valid sort keys for the ProductMedia query. ## Valid values * ID Sort by the `id` value. * POSITION Sort by the `position` 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. *** ## Fields * [Product.​media](https://shopify.dev/docs/api/storefront/unstable/objects/Product#field-Product.fields.media.arguments.sortKey) ARGUMENT The `Product` object lets you manage products in a merchant’s store. Products are the goods and services that merchants offer to customers. They can include various details such as title, description, price, images, and options such as size or color. You can use [product variants](https://shopify.dev/docs/api/storefront/latest/objects/ProductVariant) to create or update different versions of the same product. You can also add or update product [media](https://shopify.dev/docs/api/storefront/latest/interfaces/Media). Products can be organized by grouping them into a [collection](https://shopify.dev/docs/api/storefront/latest/objects/Collection). Learn more about working with [products and collections](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections). *** ## Map ### Arguments with this enum * <-|[Product.media(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/Product#field-Product.fields.media.arguments.sortKey)