--- title: SearchSortKeys - Storefront API description: The set of valid sort keys for the search query. api_version: unstable api_name: storefront source_url: html: 'https://shopify.dev/docs/api/storefront/unstable/enums/SearchSortKeys' md: 'https://shopify.dev/docs/api/storefront/unstable/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/unstable/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/unstable/queries/search#arguments-sortKey) ARGUMENT *** ## Map ### Arguments with this enum * <-|[Query​Root.search(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/QueryRoot#field-QueryRoot.fields.search.arguments.sortKey) * <-|[search.sortKey](https://shopify.dev/docs/api/storefront/unstable/queries/search#arguments-sortKey)