HelpOps-Hub icon indicating copy to clipboard operation
HelpOps-Hub copied to clipboard

[Bug] Sort dropdown on Forums page does not work

Open jasmeetc27 opened this issue 6 months ago • 4 comments

Description

On the Forums page, clicking any of the sort options from the Sort dropdown, Newest, Oldest, Most Liked, Most Viewed, or Most Commented, does not do anything. The list of forum posts stays in the same order regardless of which option is selected.

Current Behavior

Clicking any sort option from the dropdown has no effect on the order of the forum posts displayed.

Expected Behavior

Selecting an option from the Sort dropdown should reorder the forum posts accordingly. For example, selecting Newest should show the most recently posted questions first, and Most Liked should bring the most liked posts to the top.

Steps to Reproduce

Open the Forums page, click the Sort dropdown, select any option, and observe that the post order does not change.

Image

Suggested Fix

Check if the sort options are connected to any state or filtering logic. If not, implement a sort handler that takes the selected option and reorders the posts array accordingly before rendering.

Labels: bug, good first issue

jasmeetc27 avatar May 13 '26 04:05 jasmeetc27

Hello jasmeetc27, Thanks for opening an issue in HelpOps-Hub! 🚀

  • Please make sure to follow our Contributing Guidelines.

  • Hope you star our Repo.

  • Join our official Discord server, where we can collaborate and discuss how to make HelpOps-Hub even better and more professional.

  • Don’t forget to follow us on LinkedIn!

github-actions[bot] avatar May 13 '26 04:05 github-actions[bot]

I’d like to work on this issue under GSSoC, the sorting dropdown currently changes visually but the forum posts are not being reordered after selection, I can implement the required sorting logic by connecting the selected option with state management and dynamically updating the rendered posts based on criteria like newest, oldest, likes, views, and comments, I’ll also verify that the changes work consistently without affecting existing forum functionality.

saishnimbalkar397 avatar May 20 '26 05:05 saishnimbalkar397

Hey @mdazfar2! I'd love to fix this under GSSoC 2026. I'll connect the sort dropdown selection to the posts state, implement sort handlers for Newest, Oldest, Most Liked, Most Viewed, and Most Commented, and make sure the posts re-render correctly without breaking any existing forum functionality. Can I get assigned?

Midoriya-w avatar May 22 '26 17:05 Midoriya-w

Hi @mdazfar2 I raised the issue and would like to work on it. I am GSSoC'26 contributor. Please assign it to me! 🙏🏻

jasmeetc27 avatar May 22 '26 17:05 jasmeetc27

This issue has been automatically closed because it has been inactive for more than 30 days. If you believe this is still relevant, feel free to reopen it or create a new one. Thank you!

github-actions[bot] avatar Jun 23 '26 03:06 github-actions[bot]