--- title: DraftOrderByLocationSortKeys - Customer API description: The set of valid sort keys for the DraftOrderByLocation query. api_version: 2025-10 api_name: customer type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/customer/latest/enums/draftorderbylocationsortkeys md: https://shopify.dev/docs/api/customer/latest/enums/draftorderbylocationsortkeys.md --- # Draft​Order​By​Location​Sort​Keys enum The set of valid sort keys for the DraftOrderByLocation 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​Location.​draft​Orders](https://shopify.dev/docs/api/customer/latest/objects/CompanyLocation#field-draftOrders) ARGUMENT Represents a company's business location. *** ## Map ### Arguments with this enum * <-|[Company​Location.draftOrders(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/CompanyLocation#field-draftOrders)