--- title: OrderSortKeys - GraphQL Admin description: The set of valid sort keys for the Order 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/OrderSortKeys' md: 'https://shopify.dev/docs/api/admin-graphql/2024-10/enums/OrderSortKeys.txt' --- # Order​Sort​Keys enum The set of valid sort keys for the Order query. ## Valid values * CREATED\_​AT Sorts by the date and time the order was created. * CUSTOMER\_​NAME Sorts by the customer's name. * DESTINATION Sort by shipping address to analyze regional sales patterns or plan logistics. * FINANCIAL\_​STATUS Sorts by the financial status of the order. * FULFILLMENT\_​STATUS Sorts by the order's fulfillment status. * ID Sort by the `id` value. * ORDER\_​NUMBER Sorts by the order number. * PO\_​NUMBER Sort by the purchase order number to match external procurement systems or track recent orders. * PROCESSED\_​AT Sorts by the date and time the order was processed. * 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. * TOTAL\_​ITEMS\_​QUANTITY Sort by the total quantity of all line items to identify large purchases or analyze inventory demand patterns. * TOTAL\_​PRICE Sorts by the total sold price of an order in the shop currency, excluding any returns/refunds/removals. * UPDATED\_​AT Sorts by the date and time the order was last updated. *** ## Fields * [Company.​orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Company#field-orders) ARGUMENT Represents information about a company which is also a customer of the shop. * [Company​Contact.​orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyContact#field-orders) ARGUMENT A person that acts on behalf of company associated to [a customer](https://shopify.dev/api/admin-graphql/latest/objects/customer). * [Company​Location.​orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyLocation#field-orders) 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.​orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Customer#field-orders) ARGUMENT Represents information about a customer of the shop, such as the customer's contact details, their order history, and whether they've agreed to receive marketing material by email. **Caution:** Only use this data if it's required for your app's functionality. Shopify will restrict [access to scopes](https://shopify.dev/api/usage/access-scopes) for apps that don't have a legitimate use for the associated data. * [Customer​Merge​Preview​Default​Fields.​orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CustomerMergePreviewDefaultFields#field-orders) ARGUMENT The fields that will be kept as part of a customer merge preview. * [Shop.​orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-orders) ARGUMENT Represents a collection of general settings and information about the shop. * [Query​Root.​orders](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/QueryRoot#field-orders) ARGUMENT The schema's entry-point for queries. This acts as the public, top-level API from which all queries must start. * [orders.​sort​Key](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/orders#field-sortKey) QUERY *** ## Map ### Queries with this enum * \[orders.sortKey](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/orders#field-sortKey) ### Arguments with this enum * <-|[Company.orders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Company#field-orders) * <-|[Company​Contact.orders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyContact#field-orders) * <-|[Company​Location.orders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CompanyLocation#field-orders) * <-|[Customer.orders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Customer#field-orders) * <-|[Customer​Merge​Preview​Default​Fields.orders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CustomerMergePreviewDefaultFields#field-orders) * <-|[Shop.orders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-orders) * <-|[Query​Root.orders(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/QueryRoot#field-orders)