feat: make listed menu sorting consistent (#896)

This commit is contained in:
Aman Harwara
2022-02-24 19:12:58 +05:30
committed by GitHub
parent 3e14a77d62
commit f9fafec11a

View File

@@ -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 {