--- title: DraftOrderSortKeys - GraphQL Admin description: The set of valid sort keys for the DraftOrder query. api_version: 2025-10 api_name: admin type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/enums/draftordersortkeys md: https://shopify.dev/docs/api/admin-graphql/latest/enums/draftordersortkeys.md --- # Draft​Order​Sort​Keys enum The set of valid sort keys for the DraftOrder query. ## Valid values * CUSTOMER\_​NAME Sort by the `customer_name` value. * ID Sort by the `id` value. * NUMBER Sort by the `number` 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. * STATUS Sort by the `status` value. * TOTAL\_​PRICE Sort by the `total_price` value. * UPDATED\_​AT Sort by the `updated_at` value. *** ## Fields * [Company.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Company#field-Company.fields.draftOrders.arguments.sortKey) ARGUMENT Represents information about a company which is also a customer of the shop. * [Company​Contact.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyContact#field-CompanyContact.fields.draftOrders.arguments.sortKey) ARGUMENT A person that acts on behalf of company associated to [a customer](https://shopify.dev/api/admin-graphql/latest/objects/customer). * [Company​Location.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyLocation#field-CompanyLocation.fields.draftOrders.arguments.sortKey) ARGUMENT A location or branch of a [company that's a customer](https://shopify.dev/api/admin-graphql/latest/objects/company) of the shop. Configuration of B2B relationship, for example prices lists and checkout settings, may be done for a location. * [Customer​Merge​Preview​Default​Fields.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerMergePreviewDefaultFields#field-CustomerMergePreviewDefaultFields.fields.draftOrders.arguments.sortKey) ARGUMENT The fields that will be kept as part of a customer merge preview. * [Shop.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Shop#field-Shop.fields.draftOrders.arguments.sortKey) ARGUMENT Represents a collection of general settings and information about the shop. * [Query​Root.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.draftOrders.arguments.sortKey) ARGUMENT The schema's entry-point for queries. This acts as the public, top-level API from which all queries must start. * [draft​Orders.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/draftOrders#arguments-sortKey) ARGUMENT *** ## Map ### Arguments with this enum * <-|[Company.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Company#field-Company.fields.draftOrders.arguments.sortKey) * <-|[Company​Contact.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyContact#field-CompanyContact.fields.draftOrders.arguments.sortKey) * <-|[Company​Location.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyLocation#field-CompanyLocation.fields.draftOrders.arguments.sortKey) * <-|[Customer​Merge​Preview​Default​Fields.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerMergePreviewDefaultFields#field-CustomerMergePreviewDefaultFields.fields.draftOrders.arguments.sortKey) * <-|[Shop.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Shop#field-Shop.fields.draftOrders.arguments.sortKey) * <-|[Query​Root.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.draftOrders.arguments.sortKey) * <-|[draft​Orders.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/draftOrders#arguments-sortKey)