--- title: LocationSortKeys - GraphQL Admin description: The set of valid sort keys for the Location query. api_version: 2025-10 api_name: admin type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/enums/locationsortkeys md: https://shopify.dev/docs/api/admin-graphql/latest/enums/locationsortkeys.md --- # 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(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/DeliveryLocationGroup#field-DeliveryLocationGroup.fields.locations.arguments.sortKey) ARGUMENT A location group is a collection of locations. They share zones and delivery methods across delivery profiles. * [Shop.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Shop#field-Shop.fields.locations.arguments.sortKey) ARGUMENT Represents a collection of general settings and information about the shop. * [Query​Root.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/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.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/locations#arguments-sortKey) ARGUMENT *** ## Map ### Arguments with this enum * <-|[Delivery​Location​Group.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/DeliveryLocationGroup#field-DeliveryLocationGroup.fields.locations.arguments.sortKey) * <-|[Shop.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/Shop#field-Shop.fields.locations.arguments.sortKey) * <-|[Query​Root.locations(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.locations.arguments.sortKey) * <-|[locations.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/locations#arguments-sortKey)