---
title: "SearchSortKeys"
description: "The set of valid sort keys for the search query."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/products/enums/search-sort-keys'
  md: 'https://developer.shopline.com/docs/storefront-api/products/enums/search-sort-keys.md'
---
# SearchSortKeys

The set of valid sort keys for the search query.

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Enum

## Type Signature

`SearchSortKeys`

## Values

* `PRICE`

  Sort by the `price` value.

* `RELEVANCE`

  Sort by `relevance` to the search terms.

## Schema Definition

```graphql
enum SearchSortKeys { 
	PRICE 
	RELEVANCE  
}
```

## Argument from

* [Query](https://developer.shopline.com/docs/storefront-api/products/queries/search.md).search

  搜索结果列表

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

