Skip to content

Commit

Permalink
Merge pull request #1023 from the-hideout/sort-items-menu
Browse files Browse the repository at this point in the history
Sort Items menu sub items alphabetically
  • Loading branch information
GrantBirki authored Dec 16, 2024
2 parents 333177a + 4f7c5d0 commit e5dba3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Menu = () => {
<li className="submenu-wrapper submenu-items overflow-member" key="menu-items" data-targetid="items">
<Link to="/items/">{t('Items')}</Link>
<ul className="overflow-hidden">
{categoryPages.map((categoryPage) => (
{categoryPages.sort((a, b) => t(a.displayText).localeCompare(t(b.displayText))).map((categoryPage) => (
<MenuItem
displayText={t(categoryPage.displayText)}
key={categoryPage.key}
Expand Down

0 comments on commit e5dba3c

Please sign in to comment.