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

# Draft​Order​By​Company​Sort​Keys

enum

The set of valid sort keys for the DraftOrderByCompany query.

## Valid values

* CUSTOMER\_​NAME

  Sort by the `customer_name` value.

* ID

  Sort by the `id` value.

* NUMBER

  Sort by the `number` 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.

* STATUS

  Sort by the `status` value.

* TOTAL\_​PRICE

  Sort by the `total_price` value.

* UPDATED\_​AT

  Sort by the `updated_at` value.

***

## Fields

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

  ARGUMENT

  Represents a company's information.

***

## Map

### Arguments with this enum

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