--- title: DraftOrderSortKeys - GraphQL Admin description: The set of valid sort keys for the DraftOrder 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/DraftOrderSortKeys' md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/DraftOrderSortKeys.txt --- # 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.​draft​Orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Company#field-draftOrders) ARGUMENT Represents information about a company which is also a customer of the shop. * [Company​Contact.​draft​Orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyContact#field-draftOrders) ARGUMENT A person that acts on behalf of company associated to [a customer](https://shopify.dev/api/admin-graphql/latest/objects/customer). * [Company​Location.​draft​Orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyLocation#field-draftOrders) 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.​draft​Orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CustomerMergePreviewDefaultFields#field-draftOrders) ARGUMENT The fields that will be kept as part of a customer merge preview. * [Shop.​draft​Orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-draftOrders) ARGUMENT Represents a collection of general settings and information about the shop. * [Query​Root.​draft​Orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/QueryRoot#field-draftOrders) ARGUMENT The schema's entry-point for queries. This acts as the public, top-level API from which all queries must start. * [draft​Orders.​sort​Key](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/draftOrders#field-sortKey) QUERY *** ## Map ### Queries with this enum * \[draft​Orders.sortKey](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/draftOrders#field-sortKey) ### Arguments with this enum * <-|[Company.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Company#field-draftOrders) * <-|[Company​Contact.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyContact#field-draftOrders) * <-|[Company​Location.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyLocation#field-draftOrders) * <-|[Customer​Merge​Preview​Default​Fields.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CustomerMergePreviewDefaultFields#field-draftOrders) * <-|[Shop.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-draftOrders) * <-|[Query​Root.draftOrders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/QueryRoot#field-draftOrders)