> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/app/sortingdisable.md).

# 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
