# Some menu items not being sorted alphabetically?

**URL:** <https://discourse.slicer.org/t/some-menu-items-not-being-sorted-alphabetically/30956>\
**Category:** Support\
**Tags:** menu\
**Created:** [August 3, 2023, 3:01pm UTC](https://discourse.slicer.org/t/some-menu-items-not-being-sorted-alphabetically/30956 "2023-08-03T15:01:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhlegarreta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jhlegarreta/32/66542_2.png) [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Post date:** [August 3, 2023, 3:01pm UTC](https://discourse.slicer.org/t/some-menu-items-not-being-sorted-alphabetically/30956/1 "2023-08-03T15:01:51Z")

</div>

Hi,  
wondering why in some menus the items are not sorted alphabetically:

e.g.

 ![Slicer_diffusion_menu_sorting_not_alphabetically_closeup](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/c/4cea6f480eb2a9833ed583e03f55bb6a77ad0db7.png)

or

![Slicer_filtering_menu_sorting_not_alphabetically_closeup](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/a/0a0c61740dadad9823a4e26845abd4ff6eda0d97.png)

Thanks

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 3, 2023, 3:11pm UTC](https://discourse.slicer.org/t/some-menu-items-not-being-sorted-alphabetically/30956/2 "2023-08-03T15:11:38Z")

</div>

It is a feature. You can specify “index” in the module description of CLI modules. You can also set `index` property in the module object of any other modules, but I think this mechanism is only used for CLI modules now. Modules in the menu are sorted based on index (if not specified then default is 65535), and then modules that have the same index are sorted alphabetically.

This sorting mechanism has become somewhat irrelevant since there are more modules that could be practically browsed using the hierarchical menu. It is easier to just hit Ctrl-F and start typing. You can find modules not just by its name but all text (full description, extension name, developers, etc.), so the module finder is generally an easier and faster way of locating modules.

---

<div class="post-metadata">

**Author:** ![jhlegarreta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jhlegarreta/32/66542_2.png) [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Post date:** [August 3, 2023, 9:50pm UTC](https://discourse.slicer.org/t/some-menu-items-not-being-sorted-alphabetically/30956/3 "2023-08-03T21:50:37Z")

</div>

OK, thanks for the info Andras 👍.
