Skip to content

Commit

Permalink
Update poll.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alputer authored Dec 24, 2023
1 parent b3e7163 commit ced661f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/src/poll/poll.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export class PollService {
};
});

return extendedPolls;
return extendedPolls.sort((a, b) => b.voteCount - a.voteCount);
}

public async findAllWithPagination({
Expand Down

0 comments on commit ced661f

Please sign in to comment.