--- title: MarketingActivitySortKeys - GraphQL Admin description: The set of valid sort keys for the MarketingActivity query. api_version: 2025-01 api_name: admin type: enum api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2025-01/enums/MarketingActivitySortKeys md: >- https://shopify.dev/docs/api/admin-graphql/2025-01/enums/MarketingActivitySortKeys.md --- # Marketing​Activity​Sort​Keys enum The set of valid sort keys for the MarketingActivity query. ## Valid values * CREATED\_​AT Sort by the `created_at` 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.marketingActivities(sortKey)](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/QueryRoot#field-QueryRoot.fields.marketingActivities.arguments.sortKey) ARGUMENT The schema's entry-point for queries. This acts as the public, top-level API from which all queries must start. * [marketing​Activities.sortKey](https://shopify.dev/docs/api/admin-graphql/2025-01/queries/marketingActivities#arguments-sortKey) ARGUMENT *** ## Map ### Arguments with this enum * <-|[Query​Root.marketingActivities(sortKey)](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/QueryRoot#field-QueryRoot.fields.marketingActivities.arguments.sortKey) * <-|[marketing​Activities.sortKey](https://shopify.dev/docs/api/admin-graphql/2025-01/queries/marketingActivities#arguments-sortKey)