> ## 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.

# TokenRanking

> Input object for sorting tokens in the filterTokens query.

### TypeScript shape

```ts theme={null}
interface TokenRanking {
  attribute?: TokenRankingAttribute | null;
  direction?: RankingDirection | null;
}
```

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