diff --git a/src/community/services/community.service.ts b/src/community/services/community.service.ts index fc33011..796e224 100644 --- a/src/community/services/community.service.ts +++ b/src/community/services/community.service.ts @@ -111,6 +111,7 @@ export class CommunityService { .leftJoin('c.spaces', 's', 's.disabled = false') .where('c.project = :projectUuid', { projectUuid }) .andWhere(`c.name != '${ORPHAN_COMMUNITY_NAME}-${project.name}'`) + .orderBy('c.createdAt', 'DESC') .distinct(true); if (pageable.search) { qb.andWhere(