--- title: LocationSortKeys - Storefront API description: The set of valid sort keys for the Location query. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/LocationSortKeys md: https://shopify.dev/docs/api/storefront/unstable/enums/LocationSortKeys.md --- # 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/unstable/objects/QueryRoot#field-QueryRoot.fields.locations.arguments.sortKey) 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/unstable/queries/locations#arguments-sortKey) QUERY *** ## Map ### Queries with this enum * \[locations.sortKey](https://shopify.dev/docs/api/storefront/unstable/queries/locations#arguments-sortKey) ### Arguments with this enum * <-|[Query​Root.locations(sortKey)](https://shopify.dev/docs/api/storefront/unstable/objects/QueryRoot#field-QueryRoot.fields.locations.arguments.sortKey)