> For the complete documentation index, see [llms.txt](https://userguide.cryptoquant.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://userguide.cryptoquant.com/vi/web3-analytics-tool/how-to-use/6.-query-block-order-by.md).

# 6. Query Block - Order by

## Order by <a href="#h_496959e178" id="h_496959e178"></a>

"Order by" is used to sort the query results based on a specific column within a single query block.

## How to use

1. To utilize this feature, start by clicking on the "Order by" option at the top of the Query Block, which will activate the Order by input window.

   [![](https://downloads.intercomcdn.com/i/o/687219085/247277a265450388357fa2b1/orderby+1.png)](https://downloads.intercomcdn.com/i/o/687219085/247277a265450388357fa2b1/orderby+1.png)
2. Then, select the column that you want to sort the results by and choose either the "descending" or "ascending" option.\
   Note that if there is one or more "Group by" clauses in place, only the columns used in "Group by" can be used in "Order by." You can add multiple "Order by" clauses by clicking on the "Order by" button.

   [![](https://downloads.intercomcdn.com/i/o/687219101/602c24ad3e2b67648bb77254/orderby2.png)](https://downloads.intercomcdn.com/i/o/687219101/602c24ad3e2b67648bb77254/orderby2.png)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://userguide.cryptoquant.com/vi/web3-analytics-tool/how-to-use/6.-query-block-order-by.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
