--- 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](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.​sort​Key](https://shopify.dev/docs/api/storefront/unstable/queries/search#arguments-sortKey) QUERY *** ## Map ### Queries with this enum * \[search.sortKey](https://shopify.dev/docs/api/storefront/unstable/queries/search#arguments-sortKey) ### Arguments with this enum * <-|[Query​Root.search(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/QueryRoot#field-QueryRoot.fields.search.arguments.sortKey)