# sortingDisable

## Description

Disables the ability to sort a datalist component.

## Input / Parameter

N/A

## Output

N/A

## Callback

N/A

## Video

Coming Soon.

## Example

* In this example, we will disable the sorting functionality for a datalist. For steps on how to create the datalist used in this example, please check out the `sortingEnable` function.

### Steps

1. First, we add a "Disable Sorting" button to the page. And add `sortingDisable` when the button is clicked.

   ![](/files/WEBnDM8XmjWNTvKmIO3t) ![](/files/XTKPGlnQqD0n6wW2vHhj)

### Result

Any previously sortable components will not longer be sortable.

![](/files/m6JjQJH4YnQ13j0pdSsv)

## Links


---

# 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.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/app/sortingdisable.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.
