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

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

The question should be specific, self-contained, and written in natural language.
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.
