Feature request: Add sorting options to the Gantt chart

Open
#8,282 3 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Start by locating the Gantt view implementation and how it currently builds rows from Deck card order. Add selectable start-date, due-date, and card-order sorting without changing the Deck stack, then verify chronological ordering and the chosen handling of cards without dates in the Gantt view.

Written by the indexing model from the issue text.

Description

Description

The Gantt view currently displays cards in the same order as they appear in their Deck stack. This means that the vertical order of tasks in the Gantt chart does not necessarily correspond to their chronological order.

For a Gantt chart, the chronological order of tasks is important for understanding the project timeline.

For example, cards may currently be displayed as:

Development
Testing
Requirements
Design
Deployment

while their actual timeline is:

Requirements
Design
Development
Testing
Deployment

Requested functionality

Add sorting options to the Gantt view, at minimum:

Start date (ascending) — recommended default for the Gantt view
Due date (ascending)
Deck/card order — retain the current behaviour

Ideally, the user should be able to select the sorting method from the Gantt view.

Expected behaviour

When Start date ascending is selected, cards with an earlier start date should appear above cards with a later start date.

Cards without a start date could either:

be displayed at the bottom, or
remain in their existing Deck order after the dated cards.

The sorting should only affect the presentation in the Gantt view; it should not change the actual card order in the Deck stack.

Rationale

A Gantt chart is primarily a timeline visualization. Chronological ordering makes it substantially easier to understand the sequence and timing of project activities.

The current behaviour is particularly confusing when the Kanban order and chronological order differ.

Environment

Observed with:

Nextcloud 34.0.2 (Spring 26)
Deck 1.18.3

Current behaviour

Cards are displayed according to their Deck stack/card order rather than according to their start or due date.

Desired behaviour

Provide an option to sort the Gantt rows chronologically, preferably by start date ascending.

Dominant language
JavaScript
Stars
1.4k
Forks
380
Avg merge
1d 17h
Merged PRs (30d)
72

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from nextcloud/deck

All issues in nextcloud/deck

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.