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

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-d44da90a35549c26dbce49b6fbec880e0fa208f7%2FsortingDisable-step-1.png?alt=media) ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-293efb961922e71e3d00d64ec587a4ba2bd12746%2FsortingDisable-step-2.png?alt=media)

### Result

Any previously sortable components will not longer be sortable.

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-8aed0f6534cc4aee0b3fa9f2f7a5821482a4caa1%2FsortingDisable-result-1.gif?alt=media)

## Links
