From 4adf958e609b725e484a5645621ed68cb6020433 Mon Sep 17 00:00:00 2001 From: Andreas Philippi <18646892+andreasphil@users.noreply.github.com> Date: Sat, 4 Jan 2025 11:47:10 +0100 Subject: [PATCH] fix: sorting of tasks from different sections in today page --- pnpm-lock.yaml | 8 ++++---- src/stores/todayPage.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ad86427..5bd523e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: version: https://codeload.github.com/andreasphil/design-system/tar.gz/daca1147bad38d9b4f96908664c5ab4ab4757094 '@andreasphil/textarea2': specifier: github:andreasphil/textarea2#v0.1.0 - version: git+https://git@github.com:andreasphil/textarea2.git#27c5b4be9504a0ea35c8b33ee9db76f325c663f6 + version: https://codeload.github.com/andreasphil/textarea2/tar.gz/27c5b4be9504a0ea35c8b33ee9db76f325c663f6 '@fontsource-variable/fira-code': specifier: ^5.1.0 version: 5.1.0 @@ -72,8 +72,8 @@ packages: resolution: {tarball: https://codeload.github.com/andreasphil/design-system/tar.gz/daca1147bad38d9b4f96908664c5ab4ab4757094} version: 0.40.0 - '@andreasphil/textarea2@git+https://git@github.com:andreasphil/textarea2.git#27c5b4be9504a0ea35c8b33ee9db76f325c663f6': - resolution: {commit: 27c5b4be9504a0ea35c8b33ee9db76f325c663f6, repo: git@github.com:andreasphil/textarea2.git, type: git} + '@andreasphil/textarea2@https://codeload.github.com/andreasphil/textarea2/tar.gz/27c5b4be9504a0ea35c8b33ee9db76f325c663f6': + resolution: {tarball: https://codeload.github.com/andreasphil/textarea2/tar.gz/27c5b4be9504a0ea35c8b33ee9db76f325c663f6} version: 0.1.0 '@babel/helper-string-parser@7.25.9': @@ -1022,7 +1022,7 @@ snapshots: '@andreasphil/design-system@https://codeload.github.com/andreasphil/design-system/tar.gz/daca1147bad38d9b4f96908664c5ab4ab4757094': {} - '@andreasphil/textarea2@git+https://git@github.com:andreasphil/textarea2.git#27c5b4be9504a0ea35c8b33ee9db76f325c663f6': {} + '@andreasphil/textarea2@https://codeload.github.com/andreasphil/textarea2/tar.gz/27c5b4be9504a0ea35c8b33ee9db76f325c663f6': {} '@babel/helper-string-parser@7.25.9': {} diff --git a/src/stores/todayPage.ts b/src/stores/todayPage.ts index 00dc2d8..400b5ed 100644 --- a/src/stores/todayPage.ts +++ b/src/stores/todayPage.ts @@ -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) {