IntersectMBO / IntersectMBO/govtool

🐛 Incorrect Sorting of Proposals by Most Likes

Open
#3,739 1 comment 0 reactions 2 assignees Claimed by @MihajlovicMilos1995 View on GitHub
🐛 Bug 📜 Proposal Pillar 🕵️‍♂️ Testing
Dominant language
HTML
Stars
21
Forks
29
Avg merge
2d 22h
Merged PRs (30d)
7

Description

### Area

Proposal Pillar

### Domain

Custom setup

### Which wallet were you using?

_No response_

### Context

When sorting proposals by "Most Likes" on the proposal discussion page at 'https://p80-z78acf3c2-zded6a792-gtw.z937eb260.rustrocks.fr/', the displayed order is incorrect. According to the dev env, the proposal titled "Videlicet desparatus explicabo sapiente auxilium ipsum" with 1 like appears after the proposal titled "aaa" with 0 likes, despite the former having more likes.

![Image](https://github.com/user-attachments/assets/faeddc6b-cf54-4146-94e3-0a69d6d7c052)
https://p80-z78acf3c2-zded6a792-gtw.z937eb260.rustrocks.fr/proposal_discussion/3400
https://p80-z78acf3c2-zded6a792-gtw.z937eb260.rustrocks.fr/proposal_discussion/164

### Steps to reproduce

1. Navigate to the proposal discussion page: 'https://p80-z78acf3c2-zded6a792-gtw.z937eb260.rustrocks.fr/proposal_discussion'
2. Sort the proposals by "Most Likes."
3. Observe the like counts and order of the first two proposals.

### Actual behavior

- The "Most Likes" sorting does not display proposals in descending order of likes. For instance, "aaa" (0 likes) appears before "Videlicet desparatus explicabo sapiente auxilium ipsum" (1 like).

### Expected behavior

- Proposals should be sorted in descending order based on like count, with "Videlicet desparatus explicabo sapiente auxilium ipsum" (1 like) appearing before "aaa" (0 likes).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.