obsidian-tasks
obsidian-tasks copied to clipboard
Inconsistent sort order of groups by date categories (sometimes)
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
That the group by function task.happens.fromNow.groupText
puts tasks in the order:
- yesterday
- today
- future
Current behaviour
I cannot reliably reproduce this, but it has been happening to me intermittently today, in two different vaults, that I get them in the order:
- today
- yesterdate
- future
Steps to reproduce
- Create a file called
Date Categories
- Paste in this content
# Date Categories
- [ ] #task ==1== Due yesterday 📅 2024-04-28
- [ ] #task ==2== Due today 📅 2024-04-29
- [ ] #task ==3== Due tomorrow 📅 2024-04-30
## fromNow.groupText
```tasks
path includes {{query.file.path}}
group by function task.due.fromNow.groupText
```
## fromNow.sortOrder
```tasks
path includes {{query.file.path}}
group by function task.due.fromNow.sortOrder
```
## Expected Order
```tasks
path includes {{query.file.path}}
group by due
```
- View in Reading Mode
Expected result: the tasks are in the same order in all 3 searches
Actual result: sometimes the first one shows them in the order 2, 1, 3.
Which Operating Systems are you using?
- [ ] Android
- [ ] iPhone/iPad
- [ ] Linux
- [ ] macOS
- [X] Windows
Obsidian Version
1.5.12
Tasks Plugin Version
7.0.0
Checks
- [ ] I have tried it with all other plugins disabled and the error still occurs
Possible solution
No response