--- title: DraftOrderSortKeys - Customer API description: The set of valid sort keys for the DraftOrder query. api_version: 2025-10 api_name: customer type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/customer/latest/enums/draftordersortkeys md: https://shopify.dev/docs/api/customer/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​Contact.​draft​Orders](https://shopify.dev/docs/api/customer/latest/objects/CompanyContact#field-draftOrders) ARGUMENT Represents the customer's contact information. * [Customer.​draft​Orders](https://shopify.dev/docs/api/customer/latest/objects/Customer#field-draftOrders) ARGUMENT Represents the personal information of a customer. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data). *** ## Map ### Arguments with this enum * <-|[Company​Contact.draftOrders(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/CompanyContact#field-draftOrders) * <-|[Customer.draftOrders(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/Customer#field-draftOrders)