Skip to content

Commit

Permalink
fix: sorting of tasks from different sections in today page
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasphil committed Jan 4, 2025
1 parent 83e9d2f commit 4adf958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/stores/todayPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export function useTodayPage() {
removeIndent(item),
updateFn(page.id, i),
])
.sort(([a], [b]) => compare(a, b))
.filter(([item]) => {
return item.dueDate && (item.dueDate as Date).getTime() <= eod;
})
.sort(([a], [b]) => compare(a, b))
.forEach((item) => dueItems.push(item));

if (dueItems.length) {
Expand Down

0 comments on commit 4adf958

Please sign in to comment.