--- title: LocationSortKeys - GraphQL Admin description: The set of valid sort keys for the Location 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/LocationSortKeys' md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/LocationSortKeys.txt --- # Location​Sort​Keys enum The set of valid sort keys for the Location query. ## Valid values * ID Sort by the `id` value. * NAME Sort by the `name` 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. *** ## Fields * [Delivery​Location​Group.​locations](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DeliveryLocationGroup#field-locations) ARGUMENT A location group is a collection of locations. They share zones and delivery methods across delivery profiles. * [Shop.​locations](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-locations) ARGUMENT Represents a collection of general settings and information about the shop. * [Query​Root.​locations](https://shopify.dev/docs/api/admin-graphql/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/admin-graphql/2024-10/queries/locations#field-sortKey) QUERY *** ## Map ### Queries with this enum * \[locations.sortKey](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/locations#field-sortKey) ### Arguments with this enum * <-|[Delivery​Location​Group.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DeliveryLocationGroup#field-locations) * <-|[Shop.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Shop#field-locations) * <-|[Query​Root.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/QueryRoot#field-locations)