Skip to content

Commit

Permalink
create alphabetical sorting function for realms dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
varCepheid committed Sep 29, 2024
1 parent 4eef22c commit 7ec9608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ const SignUpForm = () => {
const realms = usePromise(getRealms) || []
const emitError = useErrorEmitter()

realms.sort((a, b) => a.name.localeCompare(b.name))

const onSubmit = (e: Event) => {
e.preventDefault()
if (realmId === undefined) return
Expand Down

0 comments on commit 7ec9608

Please sign in to comment.