--- title: EventSortKeys - GraphQL Admin description: The set of valid sort keys for the Event query. api_version: 2026-01 api_name: admin type: enum api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/latest/enums/EventSortKeys' md: 'https://shopify.dev/docs/api/admin-graphql/latest/enums/EventSortKeys.md' --- # Event​Sort​Keys enum The set of valid sort keys for the Event query. ## Valid values * CREATED\_AT * ID *** ## Fields * * * * * * * * * * * * * * * * * * * * * *** ## Map ### Arguments with this enum * [Article.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Article#field-Article.fields.events.arguments.sortKey) * [Blog.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Blog#field-Blog.fields.events.arguments.sortKey) * [Collection.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Collection#field-Collection.fields.events.arguments.sortKey) * [Comment.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Comment#field-Comment.fields.events.arguments.sortKey) * [Company.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Company#field-Company.fields.events.arguments.sortKey) * [Company​Location.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyLocation#field-CompanyLocation.fields.events.arguments.sortKey) * [Customer.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer#field-Customer.fields.events.arguments.sortKey) * [Discount​Automatic​Bxgy.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountAutomaticBxgy#field-DiscountAutomaticBxgy.fields.events.arguments.sortKey) * [Discount​Automatic​Node.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountAutomaticNode#field-DiscountAutomaticNode.fields.events.arguments.sortKey) * [Discount​Code​Node.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountCodeNode#field-DiscountCodeNode.fields.events.arguments.sortKey) * [Discount​Node.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountNode#field-DiscountNode.fields.events.arguments.sortKey) * [Draft​Order.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/DraftOrder#field-DraftOrder.fields.events.arguments.sortKey) * [Has​Events.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/HasEvents#field-HasEvents.fields.events.arguments.sortKey) * [Inventory​Transfer.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryTransfer#field-InventoryTransfer.fields.events.arguments.sortKey) * [Order.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Order#field-Order.fields.events.arguments.sortKey) * [Page.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Page#field-Page.fields.events.arguments.sortKey) * [Price​Rule.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceRule#field-PriceRule.fields.events.arguments.sortKey) * [Product.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Product#field-Product.fields.events.arguments.sortKey) * [Product​Variant.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant#field-ProductVariant.fields.events.arguments.sortKey) * [Query​Root.events(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.events.arguments.sortKey) * [events.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/events#arguments-sortKey)