Skip to content

Commit c73d7a2

Browse files
committed
Merge remote-tracking branch 'origin/dev' into fixing-next-match
merge commit
2 parents f31a4ce + e3c682d commit c73d7a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/realm/get-realms.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import { request } from '../base'
22
import { Realm } from '.'
33

44
// Public realms will be returned. If logged-in, the user's realm will also be returned.
5-
export const getRealms = () => request<Realm[]>('GET', 'realms')
5+
export const getRealms = () =>
6+
request<Realm[]>('GET', 'realms').then((realms) =>
7+
realms.sort((a, b) => a.name.localeCompare(b.name)),
8+
)

0 commit comments

Comments
 (0)