---
title: AnalyticsTargetSortKeys - GraphQL Admin
description: The set of valid sort keys for the AnalyticsTarget query.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/AnalyticsTargetSortKeys
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/AnalyticsTargetSortKeys.md
api_name: admin
api_type: graphql
type: enum
---

# Analytics​Target​Sort​Keys

enum

The set of valid sort keys for the AnalyticsTarget query.

## Valid values

* CREATED\_​AT

  Sort by the `created_at` value.

* END\_​DATE

  Sort by the `end_date` value.

* EXPECTED\_​VALUE

  Sort by the `expected_value` value.

* ID

  Sort by the `id` value.

* METRIC

  Sort by the `metric` value.

* NAME

  Sort by the `name` value.

* START\_​DATE

  Sort by the `start_date` value.

***

## Fields

* [Query​Root.analyticsTargets(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.analyticsTargets.arguments.sortKey)

  ARGUMENT

  The schema's entry-point for queries. This acts as the public, top-level API from which all queries must start.

* [analytics​Targets.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/analyticsTargets#arguments-sortKey)

  ARGUMENT

***

## Map

### Arguments with this enum

* [Query​Root.analyticsTargets(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.analyticsTargets.arguments.sortKey)
* [analytics​Targets.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/analyticsTargets#arguments-sortKey)
