ListDialog.Sort
---------------

Sorts entries.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ListDialog](component_ListDialog.md) | [7.5](newinversion75.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "ListDialog.Sort" { ; Descending } ) 

**MBS**( **"ListDialog.Sort";** /\* Sorts entries. \*/  
**$Descending**) /\* Optional; Pass 1 for descending sort.  
Default is 0 for ascending.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Descending | Pass 1 for descending sort.   Default is 0 for ascending. | 0 | Optional |

### Result

Returns OK or error.

### Description

Sorts entries.  
Sorts ignoring case, by default ascending.  
### See also

- [ListDialog.Reset](ListDialogReset.md)

### Release notes

- **Version 14.1**
    - Fixed a crash in [ListDialog.Sort](https://www.mbsplugins.eu/ListDialogSort.shtml) when there is no list to sort.
- **Version 7.5**
    - Added [ListDialog.Sort](http://www.mbsplugins.eu/ListDialogSort.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 14.1pr4](https://www.mbsplugins.de/archive/2024-02-26/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.5pr7](https://www.mbsplugins.de/archive/2017-11-13/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 6th November 2017 , last changed 6th November 2017

  
[ListDialog.ShowDialog](ListDialogShowDialog.md) - [Llama.Backends](LlamaBackends.md)

[HTML Version](ListDialogSort.shtml)