# Ordered queries

In this section, you'll see how to order queries:

> You can try this directly in our [**alphanet indexer's playground**](https://indexer-alphanet.ternoa.dev/) or our [**mainnet indexer's playground**](https://indexer-mainnet.ternoa.network/)

Each field generates a sort option that you can apply on any request. For example:

### Query NFTs ordered by creation timestamp

```graphql
query {
  nftEntities(
    first: 10
    offset: 0
    orderBy: TIMESTAMP_CREATE_DESC
  ) {
    totalCount
    nodes {
      nftId
      owner
      collectionId
      offchainData
      timestampCreate
    }
  }
}
```

You can put as many sort fields as you need:

### Query NFTs ordered by creation timestamp and price

```graphql
query {
  nftEntities(
    first: 10
    offset: 0
    orderBy: [TIMESTAMP_CREATE_DESC, PRICE_ASC]
  ) {
    totalCount
    nodes {
      nftId
      owner
      price
      priceRounded
      timestampCreate
    }
  }
}
```

<figure><img src="https://4243142665-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmktDjNnp8rvsgQsujVRm%2Fuploads%2FVUgLWJxGc9FkUEXBXWd4%2Fsort-playground.png?alt=media&#x26;token=84e42668-f69a-4df1-a360-28b74afac90c" alt=""><figcaption></figcaption></figure>
