[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BUG] Agenda not sorting by priority THEN todo state (todo state ignored
From: |
Jonas Olofsson |
Subject: |
[BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)] |
Date: |
Sat, 18 Mar 2023 22:07:43 -0300 |
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
I am trying to sort my agenda by a number of variables, but it seems
that todo-state-down is not applied if added after priority-down.
Instead it seems as if Priority first is applied, then the date the
item is scheduled.
Repro:
1. Set
org-agenda-sorting-strategy
'((agenda priority-down todo-state-down)
(todo priority-down todo-state-down effort-up category-keep scheduled-up)
(tags priority-down todo-state-down effort-up category-keep)
(search category-keep))
2. Set
org-todo-keywords '(
(sequence "TODO(t!)" "NEXT(n!)" "WAIT(w!)" "|"
"DONE(d!)" "CANC(c!)" "DUPE(D!)")
)
3. Have three todos scheduled:
* TODO [#C] Test
SCHEDULED: <2023-03-16 Thu>
* NEXT [#C] Test
SCHEDULED: <2023-03-15 Wed>
* WAIT [#C] Test
SCHEDULED: <2023-03-17 Fri>
4. Go to agenda.
I expect to see items in the following order, since they are the same priority.
WAIT C Test
NEXT C Test
TODO C Test
But I see:
NEXT C Test
TODO C Test
WAIT C Test
It seems the sorting is based on the scheduled time - NOT the todo state
(since they are the same priority).
I've checked various things and priority, habit, all other
org-agenda-sorting-strategy variables sort ok if indepdendently applied.
I am only able to reproduce this issuey when I have todo-state-down
AFTER priority-down in org-agenda-sorting-strategies.
Any help appreciated.
Regards,
Jonas
Emacs : GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.6.0, Carbon Version
165 AppKit 2113.6)
of 2022-09-15
Package: Org mode version 9.6.1 (9.6.1-??-fe92a3c @
/Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)
- [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)],
Jonas Olofsson <=
- Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)], Ihor Radchenko, 2023/03/22
- Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)], Samuel Wales, 2023/03/22
- Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)], Ihor Radchenko, 2023/03/23
- Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)], Samuel Wales, 2023/03/24
- Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)], Samuel Wales, 2023/03/23
- Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)], Ihor Radchenko, 2023/03/24
- Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)], Samuel Wales, 2023/03/25