--- title: LocationSortKeys - Storefront API description: The set of valid sort keys for the Location query. api_version: 2024-10 api_name: storefront type: enum api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/2024-10/enums/LocationSortKeys' md: 'https://shopify.dev/docs/api/storefront/2024-10/enums/LocationSortKeys.txt' --- # Location​Sort​Keys enum The set of valid sort keys for the Location query. ## Valid values * CITY Sort by the `city` value. * DISTANCE Sort by the `distance` value. * ID Sort by the `id` value. * NAME Sort by the `name` value. *** ## Fields * [Query​Root.​locations](https://shopify.dev/docs/api/storefront/2024-10/objects/QueryRoot#field-locations) ARGUMENT The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. * [locations.​sort​Key](https://shopify.dev/docs/api/storefront/2024-10/queries/locations#field-sortKey) QUERY *** ## Map ### Queries with this enum * \[locations.sortKey](https://shopify.dev/docs/api/storefront/2024-10/queries/locations#field-sortKey) ### Arguments with this enum * <-|[Query​Root.locations(sortKey)](https://shopify.dev/docs/api/storefront/2024-10/objects/QueryRoot#field-locations)