Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent sort order of groups by date categories (sometimes) #2789

Open
2 of 7 tasks
claremacrae opened this issue Apr 29, 2024 · 0 comments
Open
2 of 7 tasks

Inconsistent sort order of groups by date categories (sometimes) #2789

claremacrae opened this issue Apr 29, 2024 · 0 comments
Labels
scope: grouping Changes to the grouping capabilities scope: task dates and times Requests for enhancements to types and formats of dates and times associated with tasks type: bug Something isn't working

Comments

@claremacrae
Copy link
Collaborator

Please check that this issue hasn't been reported before.

  • 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

image

Steps to reproduce

  1. Create a file called Date Categories
  2. 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
```
  1. 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
  • 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

@claremacrae claremacrae added type: bug Something isn't working scope: grouping Changes to the grouping capabilities labels Apr 29, 2024
@claremacrae claremacrae changed the title Inconsistent sort order of groups by date categories Inconsistent sort order of groups by date categories (sometimes) Apr 29, 2024
@claremacrae claremacrae added the scope: task dates and times Requests for enhancements to types and formats of dates and times associated with tasks label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: grouping Changes to the grouping capabilities scope: task dates and times Requests for enhancements to types and formats of dates and times associated with tasks type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant