Skip to content

Chronological sort button for projects and tasks#8

Draft
Tanops wants to merge 1 commit into
mainfrom
cursor/chrono-sort-2073
Draft

Chronological sort button for projects and tasks#8
Tanops wants to merge 1 commit into
mainfrom
cursor/chrono-sort-2073

Conversation

@Tanops

@Tanops Tanops commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a Sort by start date button to the Gantt floating controls that reorganizes the timeline in chronological order.

Behavior

  • Projects: sorted by their earliest task start date (earliest at the top)
  • Tasks within each project: sorted by bar start date (same logic)
  • Subtasks: sorted within their parent task using the same start-date rule
  • Items without a due date sink to the bottom
  • Ties break alphabetically by title
  • Sort is undoable (Ctrl/Cmd+Z) and persisted via the existing board save snapshot

UI

New icon in the floating control cluster (between timeline zoom and Today's priorities): click to sort; a brief "Sorted by start date" label flashes on hover/click like the other toggle controls.

Testing

  • npm test — all 26 tests pass
  • node --check src/app/main.js
Open in Web Open in Cursor 

Sort projects by earliest task start date and reorder each project's
tasks (and subtasks) by bar start date. Undated items sink to the
bottom; order is persisted via the existing undo/save snapshot.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://Summon-RnD.github.io/task-manager/pr-preview/pr-8/

Built to branch gh-pages at 2026-07-07 14:42 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants