> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/products/llms.txt)
> Source: https://docs.saleor.io/api-reference/products/inputs/category-sorting-input

# CategorySortingInput Input Type

No description

```graphql
input CategorySortingInput {
  direction: OrderDirection!
  channel: String @deprecated
  field: CategorySortField!
}
```

<a id="fields"></a>

### Fields

<a id="direction"></a>

#### [`direction`](#direction) ● [`OrderDirection!`](/api-reference/miscellaneous/enums/order-direction.md)

Specifies the direction in which to sort categories.

<a id="field"></a>

#### [`field`](#field) ● [`CategorySortField!`](/api-reference/products/enums/category-sort-field.md)

Sort categories by the selected field.

Show deprecatedHide deprecated

<a id="channel"></a>

#### [`channel`](#channel) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

DEPRECATED

Use root-level channel argument instead.

Specifies the channel in which to sort the data.

<a id="member-of"></a>

### Member Of

[`categories`](/api-reference/products/queries/categories.md) query
