# How to Reorder Admin Toolbar Sub-Menu Links in Alphabetical Order

**URL:** <https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287>\
**Category:** Get Help\
**Tags:** wordpress, code-snippets, gravity-wiz, conditional-logic\
**Created:** [October 4, 2024, 12:37am UTC](https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287 "2024-10-04T00:37:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AeroStar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/aerostar/32/15243_2.png) [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Post date:** [October 4, 2024, 12:37am UTC](https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287/1 "2024-10-04T00:37:25Z")

</div>

Good Day,

How can I reorder Gravity Forms’ Admin Toolbar [sub-menu links](https://prnt.sc/MpGtVkKlDpaj) in alphabetical order? A PHP/JS code snippet would be great.

Thank you!

Jonathan

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 4, 2024, 4:33am UTC](https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287/2 "2024-10-04T04:33:54Z")

</div>

Hi Jonathan. To have some control over that list of forms in the admin toolbar, take a look at this plugin from Gravity Wiz:

> <https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-dashboard-widget-controls.php>

It allows you to select which forms should appear in the top menu, and optionally in the dashboard widget.

I think if you look at that plugin, you could copy the method it uses to include/exclude forms, and instead return all forms by form title alphabetically.

---

<div class="post-metadata">

**Author:** ![AeroStar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/aerostar/32/15243_2.png) [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Post date:** [October 5, 2024, 6:27pm UTC](https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287/3 "2024-10-05T18:27:47Z")

</div>

Hi Chris,

Thank you for the hint. That’s hard work! 🙂

Any chance you can elevate this topic to your chief developer for a second look and a lean, mean code snippet?

As an example, [Rank Math developed one](https://wordpress.org/support/topic/how-to-display-admin-toolbar-sub-menu-links-in-alphabetical-order/#post-18053284) for their plugin and it works great.

Again, thank you.

Jonathan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [November 4, 2024, 6:27pm UTC](https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287/4 "2024-11-04T18:27:54Z")

</div>

Closed on November 4, 2024, 6:27pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
