We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f31a4ce + e3c682d commit c73d7a2Copy full SHA for c73d7a2
src/api/realm/get-realms.ts
@@ -2,4 +2,7 @@ import { request } from '../base'
2
import { Realm } from '.'
3
4
// Public realms will be returned. If logged-in, the user's realm will also be returned.
5
-export const getRealms = () => request<Realm[]>('GET', 'realms')
+export const getRealms = () =>
6
+ request<Realm[]>('GET', 'realms').then((realms) =>
7
+ realms.sort((a, b) => a.name.localeCompare(b.name)),
8
+ )
0 commit comments