--- title: OrderSortKeys - Storefront API description: The set of valid sort keys for the Order query. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/OrderSortKeys md: https://shopify.dev/docs/api/storefront/unstable/enums/OrderSortKeys.md --- # Order​Sort​Keys enum The set of valid sort keys for the Order query. ## Valid values * ID Sort by the `id` value. * PROCESSED\_​AT Sort by the `processed_at` 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. * TOTAL\_​PRICE Sort by the `total_price` value. *** ## Fields * [Customer.​orders](https://shopify.dev/docs/api/storefront/unstable/objects/Customer#field-Customer.fields.orders.arguments.sortKey) ARGUMENT A customer represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout. *** ## Map ### Arguments with this enum * <-|[Customer.orders(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/Customer#field-Customer.fields.orders.arguments.sortKey)