Skip to content

fix(calendar): preserve chronological placement with Bases sorting - #2318

Merged
callumalpass merged 1 commit into
callumalpass:mainfrom
martin-forge:martin-forge/calendar-display-order
Sep 13, 2026
Merged

fix(calendar): preserve chronological placement with Bases sorting#2318
callumalpass merged 1 commit into
callumalpass:mainfrom
martin-forge:martin-forge/calendar-display-order

Conversation

@martin-forge

Copy link
Copy Markdown
Contributor

A Base sort currently puts task result ranks ahead of calendar start times. In agenda view, this can place an evening task before an earlier appointment that has no Base result index.

Keep start time and all-day placement first, then use Base rank to order tasks at the same placement. Calendars without an explicit Base sort keep their existing order. This follows up on #1411.

Validation: the agenda sorting suite passes (4 tests), including the real FullCalendar comparator with morning/evening tasks and an intervening appointment. ESLint, the TypeScript/build check, and a reload in a disposable Obsidian vault also passed.

@martin-forge
martin-forge marked this pull request as ready for review September 11, 2026 10:38
@callumalpass
callumalpass merged commit 14f7e6a into callumalpass:main Sep 13, 2026
2 checks passed
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