diff --git a/backend/src/graphql/resolver/CommunityResolver.ts b/backend/src/graphql/resolver/CommunityResolver.ts index 1292fa55f..e9efc8a44 100644 --- a/backend/src/graphql/resolver/CommunityResolver.ts +++ b/backend/src/graphql/resolver/CommunityResolver.ts @@ -11,7 +11,11 @@ export class CommunityResolver { @Query(() => [Community]) async getCommunities(): Promise { const dbCommunities: DbCommunity[] = await DbCommunity.find({ - order: { foreign: 'ASC', publicKey: 'ASC', apiVersion: 'ASC' }, + order: { + foreign: 'ASC', + createdAt: 'DESC', + lastAnnouncedAt: 'DESC', + }, }) return dbCommunities.map((dbCom: DbCommunity) => new Community(dbCom)) }