Skip to content

Commit

Permalink
Add ordering when display
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodimarco-dfinity committed Oct 3, 2024
1 parent 65709a1 commit e50f88a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ const Drawer: React.FC<DrawerProps> = ({ providers, drawerWidth, temporary, draw
toggleOpen: React.Dispatch<React.SetStateAction<boolean>>,
basePath: string
) => {
const itemList = items ? Array.from(items) : [];
const itemList = items
? Array.from(items).sort((a, b) => a[1].localeCompare(b[1]))
: [];

return (
<>
Expand Down

0 comments on commit e50f88a

Please sign in to comment.