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