---
title: MarketingEventSortKeys - GraphQL Admin
description: The set of valid sort keys for the MarketingEvent query.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/MarketingEventSortKeys
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/MarketingEventSortKeys.md
api_name: admin
api_type: graphql
type: enum
---

# Marketing​Event​Sort​Keys

enum

The set of valid sort keys for the MarketingEvent query.

## Valid values

* ID

  Sort by the `id` value.

* STARTED\_​AT

  Sort by the `started_at` value.

***

## Fields

* [Query​Root.marketingEvents(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.marketingEvents.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​Events.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/marketingEvents#arguments-sortKey)

  ARGUMENT

***

## Map

### Arguments with this enum

* [Query​Root.marketingEvents(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.marketingEvents.arguments.sortKey)
* [marketing​Events.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/marketingEvents#arguments-sortKey)
