Let users sort the task list
Maintainers usually reply within 1 day
@ayush14cyber is already working on this.
Since Oct 18, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 70/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- express, javascript, mongodb, nodejs, react
- Domain
- backend, frontend, full-stack
Research direction
Start with the getTasks function in server/src/controllers/taskController.js, then the filters row and fetchTasks in client/src/pages/Tasks.jsx. Read the existing getQueryString helper, and add the sort parameter with the four values and a fallback to newest. Priority needs a rank, not alphabetical order, so the aggregation hint applies. Done when GET /api/v1/tasks?sort=priority&status=todo returns high-priority to-dos first, ?sort=banana returns newest first, and the UI dropdown reorders the list. Document the parameter in README.md.
Written by the indexing model from the issue text.
Description
Context
Tasks are always listed newest first. Users should be able to sort by priority (to see urgent work first) and by title. This touches both the API and the UI.
Files likely involved
server/src/controllers/taskController.js(getTasks)client/src/pages/Tasks.jsx(filters row andfetchTasks)README.md(API table: document the new parameter)
Acceptance criteria
API
-
GET /api/v1/tasksaccepts?sort=with these values:newest(default),oldest,priority(high → medium → low, then newest),title(A → Z). - Unknown values fall back to
newest. Read the value with the existinggetQueryStringhelper, like the other parameters. - Search, filters and pagination still work together with sorting.
- Hint: sorting the text
priorityalphabetically gives high, low, medium, which is wrong. One option is a MongoDB aggregation with$addFieldsand$indexOfArray: [["high", "medium", "low"], "$priority"]to sort by rank.
UI
- A "Sort by" dropdown next to the existing filters, with the four options.
- Changing it reloads the list and goes back to page 1 once pagination exists (see the issue "Tasks page only shows the 20 newest tasks").
How to test
- Create tasks with different priorities and titles.
- Try each sort option in the UI and check the order.
- In Postman:
GET /api/v1/tasks?sort=priority&status=todoreturns only to-do tasks, high priority first.?sort=bananareturns newest first.
New here? 👋 Comment below to ask to work on this issue, and wait to be assigned. Then follow CONTRIBUTING.md for setup and how to open a pull request. Questions are welcome in the comments or in Discussions.
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 2
- Avg merge
- 7h 8m
- Merged PRs (30d)
- 38
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from KEX-03/taskflow
-
Due dates (3/3): highlight overdue tasksPossibly taken @maansi1004 claimed this 2 days ago. Opendifficulty: medium enhancement frontend hacktoberfest help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
KEX-03/taskflow#70 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Keep keyboard focus inside open dialogsPossibly taken @100rabheimer claimed this 5 days ago. Opendifficulty: easy enhancement frontend good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
KEX-03/taskflow#62 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Announce the character counters to screen readersPossibly taken @Anushka157-cha claimed this 2 days ago. Opendifficulty: easy enhancement frontend good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
KEX-03/taskflow#61 · 6 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Show a "Page not found" page for unknown URLsPossibly taken @Salypse claimed this 5 days ago. Opendifficulty: easy enhancement frontend good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
KEX-03/taskflow#59 · 8 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Warn users when selecting past due datesPossibly taken @the-coder-aadi claimed this 1 day ago. Openenhancement frontend
KEX-03/taskflow#94 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
check:passed logos:add
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 6 days
-
cvss-severity:high devguard l3montree-cybersecurity/.../devguard-documentation pkg:oci/devguard-documen...ch=amd64&tag=main-amd64 risk:low state:open
Difficulty 1/5 Under an hour Newbie friendliness 75/100
l3montree-dev/devguard-documentation#365 · 1 comment ·
-
docs
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
idean3885/claude-ops-agent#811 ·
Maintainers usually reply within 1 day
-
external-plugin ready-for-review third party
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/awesome-copilot#5713 · 1 comment ·
Maintainers usually reply within 1 day
-
curriculum documentation quality
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
githubnext/gh-aw-workshop#5038 ·
Maintainers usually reply within 1 day