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

# BalancesSortAttribute

> The attribute to sort balances by. Reference for the BalancesSortAttribute enum in the Codex API: every value and where it is accepted.

## GraphQL

```
enum BalancesSortAttribute {
  BALANCE
  USD_VALUE
}
```

### Used By

**Used as input by**

* [balances](https://docs.codex.io/api-reference/queries/balances.md): Returns list of token balances that a wallet has.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.