Relative date groups sort in an unexpected order (ascending)
I'm not sure whether this is a bug or intended behavior. When I group a query by Date > Relative and sort the groups ascending, the order is This week, Today, Tomorrow, Next week.
I expected Today, Tomorrow, This week, Next week. That's the order the built-in 'Scheduled' query for tasks uses.
Steps to reproduce:
- Create a query
- Group it by Date > Relative
- Set 'Sort groups by' to Ascending
Actual order: This week → Today → Tomorrow → Next week
Expected order: Today → Tomorrow → This week → Next week (like in the 'Scheduled' query for tasks)
Capacities v1.74.3
3 Comments
Sign in to comment
·11 hours agoHi! Thanks for the clear steps. This is intended, but the naming doesn't make it obvious.
Grouping a date has two "relative" options:
- Relative is built for looking back, like when something was created or last edited. Its "This week" group means "earlier this week", so it sits between "Last week" and "Yesterday". That's why you see This week → Today → Tomorrow when sorting ascending.
- Scheduled is built for looking ahead, and it's what the built-in Scheduled query for tasks uses. It gives you Overdue → Today → Tomorrow → This week → Next week.
To get the order you expected, open your query's grouping, choose your date property, then pick Scheduled instead of Relative, and keep the groups ascending.
I hope that helps! Let us know if anything still looks off.
Thanks for the response, but I'm not sure I follow. I don't see a "Scheduled" option in the query's grouping. The only available options are:
- By Hour
- By Day
- By Week
- By Month
- By Year
- Relative

I also checked the Group By - Capacities Documentation, but I couldn't find a "Scheduled" option there either.
My main concern and why I think this matter is that "This week" doesn't only mean "earlier this week". Based on the screenshot below, it can also mean "later this week". 
When I sort ascending, I expect the groups to appear in chronological order. But because "This week" can contain future dates, it lands in the wrong position, and that makes the query harder to read.
Your request is completed, thanks for reporting!