--- title: MarketingEventSortKeys - GraphQL Admin description: The set of valid sort keys for the MarketingEvent query. api_version: 2024-10 api_name: admin type: enum api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/MarketingEventSortKeys md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/MarketingEventSortKeys.txt --- # Marketing​Event​Sort​Keys enum The set of valid sort keys for the MarketingEvent query. ## Valid values * 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. * STARTED\_​AT Sort by the `started_at` value. *** ## Fields * [Shop.​marketing​Events](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-marketingEvents) ARGUMENT Represents a collection of general settings and information about the shop. * [Query​Root.​marketing​Events](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/QueryRoot#field-marketingEvents) ARGUMENT The schema's entry-point for queries. This acts as the public, top-level API from which all queries must start. * [marketing​Events.​sort​Key](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/marketingEvents#field-sortKey) QUERY *** ## Map ### Queries with this enum * \[marketing​Events.sortKey](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/marketingEvents#field-sortKey) ### Arguments with this enum * <-|[Shop.marketingEvents(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-marketingEvents) * <-|[Query​Root.marketingEvents(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/QueryRoot#field-marketingEvents)