Skip to content

Commit

Permalink
feat: make listed menu sorting consistent (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Feb 24, 2022
1 parent 3e14a77 commit f9fafec
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -157,7 +157,14 @@ const ListedActionsMenu: FunctionComponent<ListedActionsMenuProps> = ({
})
);

setMenuGroups(menuGroups);
setMenuGroups(
menuGroups.sort((a, b) => {
return a.name.toString().toLowerCase() <
b.name.toString().toLowerCase()
? -1
: 1;
})
);
} catch (err) {
console.error(err);
} finally {
Expand Down

0 comments on commit f9fafec

Please sign in to comment.