todo-keywords sorting does not work
- Dominant language
- Emacs Lisp
- Stars
- 1.6k
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
I cannot get `org-ql-search` to sort my keywords by the `org-todo-keywords-1` sequence (as previously discussed in #217)
Here is my minimal repro case:
```org
#+TITLE: Org Ql Test
#+TODO: URGENT NEXT P2 P3 TODO WAIT | DONE
* P2 Item
* TODO Item
* NEXT Item
* WAIT Item
* P3 Item
* URGENT Item
* P2 Item
```
```elisp
(defun ta/org-ql/test ()
(interactive)
(org-ql-search "~/Dropbox/org/gtd/org-ql-test.org"
'(todo)
:sort '(todo)
:title "Test")
)
```
The screenshot below shows the generated org-ql buffer with the incorrect sorting, as well as the source org buffer and the value of `org-todo-keywords-1` of the org buffer.

org-ql 0.5.2
emacs 27.2
doom 3.0.0-alpha HEAD
MacOS 11.4 Darwin 20.5.0 arm64 ns
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.