# Verify Table Sort

This is a pre-built action in Avo Assure. This action checks whether the data in a grid is correctly sorted in ascending or descending order based on a selected column, and saves the result in dynamic variable.&#x20;

### Syntax

**Input Value:** `<Column Header Value>;<Sort Order>`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>Column Header value<br>(Required)</td><td>Column name from the grid to verified</td><td></td></tr><tr><td>Sort Order<br>(Required)</td><td>ascending or descending order for sorting</td><td></td></tr></tbody></table>

**Output Value:**&#x20;

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>(Optional);&#x3C;Dynamic Variable>(Optional)</td><td>This variable holds the results in <strong>True</strong> and <strong>False</strong></td><td></td></tr></tbody></table>

**Example**&#x20;

**Verify if a specific column in the table is sorted in descending order**\
\
The **Verify Table Sort** action takes the value from the Input Value column (e.g., **Instrument;descending**) and checks whether the specified column (Instrument) is sorted in descending order. The result is stored in the **{IsSorted}** variable with the following possible values:

* &#x20;**Ture** – if the column is sorted in descending order
* **False** – if the column is not sorted or an error occurs

<figure><img src="/files/eOvXjBHTlUmuEGM58acy" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1xpZHazeVH8hQ45RcDK9" alt=""><figcaption></figcaption></figure>


---

# 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://docs.avoautomation.com/avo-assure/actions/grid/verify-table-sort-1.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.
