--- title: ReturnSortKeys - Customer API description: The set of valid sort keys for the Return query. api_version: 2026-01 api_name: customer type: enum api_type: graphql source_url: html: 'https://shopify.dev/docs/api/customer/latest/enums/ReturnSortKeys' md: 'https://shopify.dev/docs/api/customer/latest/enums/ReturnSortKeys.md' --- # Return​Sort​Keys enum The set of valid sort keys for the Return query. ## Valid values * CREATED\_​AT Sort by the `created_at` value. * ID Sort by the `id` value. *** ## Fields * [Order.returns(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/Order#field-Order.fields.returns.arguments.sortKey) ARGUMENT A customer’s completed request to purchase one or more products from a shop. 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 * [Order.returns(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/Order#field-Order.fields.returns.arguments.sortKey)