Skip to content

fix: sort closed tasks by completion date#111

Merged
bborn merged 1 commit intomainfrom
task/212-closed-tasks-should-sort-in-order-of-clo
Jan 11, 2026
Merged

fix: sort closed tasks by completion date#111
bborn merged 1 commit intomainfrom
task/212-closed-tasks-should-sort-in-order-of-clo

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 11, 2026

Summary

  • Closed tasks (done/blocked) now sort by completed_at DESC instead of created_at DESC
  • Most recently closed tasks appear first in the Done column
  • Added id DESC as secondary sort for consistent ordering when timestamps are equal
  • Added test to verify closed tasks sorting behavior

Test plan

  • Added TestListTasksClosedSortedByCompletedAt test
  • All existing tests pass
  • Manual verification: close multiple tasks and verify they appear in order of closing time in the Done column

🤖 Generated with Claude Code

Previously, all tasks were sorted by created_at DESC, meaning closed tasks
in the "Done" column showed oldest-created tasks first rather than
most-recently-closed tasks first.

Now closed tasks (done/blocked status) are sorted by completed_at DESC,
showing the most recently closed tasks first. Other tasks continue to
sort by created_at DESC.

Added id DESC as secondary sort for consistent ordering when timestamps
are equal.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit d07e698 into main Jan 11, 2026
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.

1 participant