SyntaxColoring.SortStlyeMenu.SetEnabled
---------------------------------------

Whether to sort style menu in contextual menu.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [15.4](newinversion154.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.SortStlyeMenu.SetEnabled"; Value ) 

**MBS**( **"SyntaxColoring.SortStlyeMenu.SetEnabled";** /\* Whether to sort style menu in contextual menu. \*/  
**$Value**) /\* The new setting.  
Pass 1 to enable sorting or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting.   Pass 1 to enable sorting or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Whether to sort style menu in contextual menu.  
### Examples

Enable sorting:

 MBS ( "SyntaxColoring.SortStlyeMenu.SetEnabled"; 1 ) Disable sorting:

MBS ( "SyntaxColoring.SortStlyeMenu.SetEnabled"; 0 )

### See also

- [SyntaxColoring.HelpMenu.GetEnabled](SyntaxColoringHelpMenuGetEnabled.md)
- [SyntaxColoring.HelpMenu.SetEnabled](SyntaxColoringHelpMenuSetEnabled.md)
- [SyntaxColoring.ScriptGoToBox.GetEnabled](SyntaxColoringScriptGoToBoxGetEnabled.md)
- [SyntaxColoring.ScriptGoToBox.SetEnabled](SyntaxColoringScriptGoToBoxSetEnabled.md)
- [SyntaxColoring.ScriptSearchBox.SetEnabled](SyntaxColoringScriptSearchBoxSetEnabled.md)
- [SyntaxColoring.SortMenuEntries.SetEnabled](SyntaxColoringSortMenuEntriesSetEnabled.md)
- [SyntaxColoring.SortStlyeMenu.GetEnabled](SyntaxColoringSortStlyeMenuGetEnabled.md)

### Release notes

- **Version 15.4**
    - Added SyntaxColoring.SortStlyeMenu.SetEnabled and SyntaxColoring.SortStlyeMenu.GetEnabled functions.

### Blog Entries

- [Goodies 13: Sort contextual menu for object styles](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/13-Sortcontextualmenuforobjectstyles.shtml)

This function is free to use.

Created 3th September 2025 , last changed 3th September 2025

  
[SyntaxColoring.SortStlyeMenu.GetEnabled](SyntaxColoringSortStlyeMenuGetEnabled.md) - [SyntaxColoring.TurnErrorsBlue.GetEnabled](SyntaxColoringTurnErrorsBlueGetEnabled.md)

[HTML Version](SyntaxColoringSortStlyeMenuSetEnabled.shtml)