> 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/web3-analytics-tool/how-to-use-query-tool/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
