> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PairRanking

> Input object for sorting pairs in the filterPairs query.

### TypeScript shape

```ts theme={null}
interface PairRanking {
  attribute?: PairRankingAttribute | null;
  direction?: RankingDirection | null;
}
```

<ResponseField name="attribute" type="PairRankingAttribute!">The field to sort by. See [PairRankingAttribute](/api-reference/graphql/types/PairRankingAttribute).</ResponseField>
<ResponseField name="direction" type="RankingDirection!">Sort direction: `ASC` or `DESC`. See [RankingDirection](/api-reference/graphql/types/RankingDirection).</ResponseField>
