diff --git a/app/backend/src/poll/poll.service.ts b/app/backend/src/poll/poll.service.ts index f3ebc618..629a72ec 100644 --- a/app/backend/src/poll/poll.service.ts +++ b/app/backend/src/poll/poll.service.ts @@ -362,7 +362,7 @@ export class PollService { }; }); - return extendedPolls; + return extendedPolls.sort((a, b) => b.voteCount - a.voteCount); } public async findAllWithPagination({