# Ordering of submenu menu items in InDesign flyout menu

**URL:** <https://forums.creativeclouddeveloper.com/t/ordering-of-submenu-menu-items-in-indesign-flyout-menu/8519>\
**Category:** InDesign\
**Created:** [October 15, 2024, 8:32am UTC](https://forums.creativeclouddeveloper.com/t/ordering-of-submenu-menu-items-in-indesign-flyout-menu/8519 "2024-10-15T08:32:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipbuckley](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@philipbuckley](https://forums.creativeclouddeveloper.com/u/philipbuckley)\
**Post date:** [October 15, 2024, 8:32am UTC](https://forums.creativeclouddeveloper.com/t/ordering-of-submenu-menu-items-in-indesign-flyout-menu/8519/1 "2024-10-15T08:32:31Z")

</div>

I am pleased that, with InDesign v20, we’ve now got panel flyout menus. However, there is one oddity that I can’t immediately see how to work around.

I want a simple ‘Go to’ submenu in my flyout menu, with 3 menu items in the submenu: ‘Front Cover’, ‘Table of Contents’, ‘Back Cover’.

The code I have in entrypoints (in the menuItems section of the panel section) is:

```auto
{id:'goto', label:'Go to', submenu:[
	{id:'goto-front-cover', label:'Front Cover'},
	{id:'goto-table-of-contents', label:'Table of Contents'},
	{id:'goto-back-cover', label:'Back Cover'}
]},

```

What I am seeing in InDesign is this:

 ![Screenshot 2024-10-15 at 08.56.46](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/5/556478703a889749dadf088844ca6aa0395a6421.png)

I want the menu items in the order I have entered them: ‘Front Cover’, ‘Table of Contents’, ‘Back Cover’, but what I am getting is: ‘Back Cover’., ‘Front Cover’, ‘Table of Contents’. It seems that uxp is re-ordering my submenu menu items alphabetically on the label. Why? And how can I get the menu items to show up in the order that I have entered and want?

Is this alphabetical re-ordering a bug or a (supposed) feature?

Note that this re-ordering doesn’t seem to happen with menu items at the root level of the flyout menu – they are ordered as entered.

Philip

---

<div class="post-metadata">

**Author:** ![philipbuckley](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@philipbuckley](https://forums.creativeclouddeveloper.com/u/philipbuckley)\
**Post date:** [October 16, 2024, 2:04pm UTC](https://forums.creativeclouddeveloper.com/t/ordering-of-submenu-menu-items-in-indesign-flyout-menu/8519/2 "2024-10-16T14:04:51Z")

</div>

I have found that this issue is specific to InDesign – submenu menu items are ordered as entered in a Photoshop plugin panel.

Philip
