--- title: BlogSortKeys - Storefront API description: The set of valid sort keys for the Blog query. api_version: unstable api_name: storefront source_url: html: 'https://shopify.dev/docs/api/storefront/unstable/enums/BlogSortKeys' md: 'https://shopify.dev/docs/api/storefront/unstable/enums/BlogSortKeys.md' --- # Blog​Sort​Keys enum The set of valid sort keys for the Blog query. ## Valid values * HANDLE Sort by the `handle` value. * ID Sort by the `id` 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. * TITLE Sort by the `title` value. *** ## Fields * [Query​Root.blogs(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/QueryRoot#field-QueryRoot.fields.blogs.arguments.sortKey) ARGUMENT The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. * [blogs.sortKey](https://shopify.dev/docs/api/storefront/unstable/queries/blogs#arguments-sortKey) ARGUMENT *** ## Map ### Arguments with this enum * <-|[Query​Root.blogs(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/QueryRoot#field-QueryRoot.fields.blogs.arguments.sortKey) * <-|[blogs.sortKey](https://shopify.dev/docs/api/storefront/unstable/queries/blogs#arguments-sortKey)