---
title: CompanyLocationSortKeys - Customer API
description: The set of valid sort keys for the CompanyLocation query.
api_version: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/customer/latest/enums/CompanyLocationSortKeys'
  md: >-
    https://shopify.dev/docs/api/customer/latest/enums/CompanyLocationSortKeys.md
api_name: customer
api_type: graphql
type: enum
---

# Company​Location​Sort​Keys

enum

The set of valid sort keys for the CompanyLocation query.

## Valid values

* COMPANY\_​AND\_​LOCATION\_​NAME

  Sort by the `company_and_location_name` value.

* COMPANY\_​ID

  Sort by the `company_id` value.

* CREATED\_​AT

  Sort by the `created_at` value.

* 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.

* UPDATED\_​AT

  Sort by the `updated_at` value.

***

## Fields

* [Company.locations(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/Company#field-Company.fields.locations.arguments.sortKey)

  ARGUMENT

  Represents a company's information.

* [Company​Contact.locations(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/CompanyContact#field-CompanyContact.fields.locations.arguments.sortKey)

  ARGUMENT

  Represents the customer's contact information.

***

## Map

### Arguments with this enum

* [Company.locations(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/Company#field-Company.fields.locations.arguments.sortKey)
* [Company​Contact.locations(sortKey)](https://shopify.dev/docs/api/customer/latest/objects/CompanyContact#field-CompanyContact.fields.locations.arguments.sortKey)
