---
title: GiftCardSortKeys - GraphQL Admin
description: The set of valid sort keys for the GiftCard query.
api_version: 2026-10
source_url:
  html: https://shopify.dev/docs/api/admin-graphql/latest/enums/giftcardsortkeys
  md: https://shopify.dev/docs/api/admin-graphql/latest/enums/giftcardsortkeys.md
---

# GiftCardSortKeys

enum

The set of valid sort keys for the GiftCard query.

## Valid values

* AMOUNT\_SPENT

  Sort by the `amount_spent` value.

* BALANCE

  Sort by the `balance` value.

* CODE

  Sort by the `code` value.

* CREATED\_AT

  Sort by the `created_at` value.

* CUSTOMER\_NAME

  Sort by the `customer_name` value.

* DISABLED\_AT

  Sort by the `disabled_at` value.

* EXPIRES\_ON

  Sort by the `expires_on` value.

* ID

  Sort by the `id` value.

* INITIAL\_VALUE

  Sort by the `initial_value` value.

* UPDATED\_AT

  Sort by the `updated_at` value.

***

## Fields

* [CustomerMergePreviewDefaultFields.giftCards(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerMergePreviewDefaultFields#field-CustomerMergePreviewDefaultFields.fields.giftCards.arguments.sortKey)

  ARGUMENT

  The fields that will be kept as part of a customer merge preview.

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

  ARGUMENT

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

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

  ARGUMENT

***

## Map

### Arguments with this enum

* [CustomerMergePreviewDefaultFields.giftCards(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerMergePreviewDefaultFields#field-CustomerMergePreviewDefaultFields.fields.giftCards.arguments.sortKey)
* [QueryRoot.giftCards(sortKey)](https://shopify.dev/docs/api/admin-graphql/latest/objects/QueryRoot#field-QueryRoot.fields.giftCards.arguments.sortKey)
* [giftCards.sortKey](https://shopify.dev/docs/api/admin-graphql/latest/queries/giftCards#arguments-sortKey)