nextcloud / nextcloud/tasks

Can we have relevance sort also sort by created?

Open
#2,515 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage enhancement
Dominant language
JavaScript
Stars
706
Forks
117
Avg merge
8h 50m
Merged PRs (30d)
18

Description

Is your feature request related to a problem? Please describe.

Right now, as far as I can tell, there is no way to have the due items at the top of the list and then after that the list of items ordered by date created.

Describe the solution you'd like

I would like to add sortByCreated right before sortAlphabetically
https://github.com/nextcloud/tasks/blob/7215a16521f1b1d3cc3271fb34420ca1c1f21695/src/store/storeHelper.js#L271-L272

Would you accept this change?

Describe alternatives you've considered

The alternative would be to have a bit of an overhaul and allow something like "group by" and "sort by" such as tasks.org has (see https://github.com/tasks/tasks/issues/768)

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/store/storeHelper.js at the sorting options around lines 271-272. Review how relevance and due-item ordering are handled, then add the requested created-date sort option before alphabetical sorting. Done means the list can place due items first and order the remaining items by creation date.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.