Skip to content

Commit

Permalink
Merge pull request #760 from bounswe/Alputer-patch-5
Browse files Browse the repository at this point in the history
Update poll.service.ts
  • Loading branch information
BatuhanIlhan authored Dec 24, 2023
2 parents b3e7163 + ced661f commit 1481e2a
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 1481e2a

Please sign in to comment.