Skip to content

Commit

Permalink
feat(ui): order sidebar options alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Apr 25, 2022
1 parent a2ef944 commit b55cd6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/utils/generateNavOptions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export function generateNavOptions(list) {
return list.map((network) => network[0].chain)
return list
.map((network) => network[0].chain)
.sort((a, b) => (b < a ? 1 : -1))
}

0 comments on commit b55cd6b

Please sign in to comment.