--- title: SearchSortKeys - Storefront API description: The set of valid sort keys for the search query. api_version: 2025-10 api_name: storefront type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/enums/searchsortkeys md: https://shopify.dev/docs/api/storefront/latest/enums/searchsortkeys.md --- # Search​Sort​Keys enum The set of valid sort keys for the search query. ## Valid values * PRICE Sort by the `price` value. * RELEVANCE Sort by relevance to the search terms. *** ## Fields * [Query​Root.search(sortKey)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.search.arguments.sortKey) ARGUMENT The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. * [search.sortKey](https://shopify.dev/docs/api/storefront/latest/queries/search#arguments-sortKey) ARGUMENT *** ## Map ### Arguments with this enum * <-|[Query​Root.search(sortKey)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.search.arguments.sortKey) * <-|[search.sortKey](https://shopify.dev/docs/api/storefront/latest/queries/search#arguments-sortKey)