emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] lisp/org.el: Add ability to sort tags by hierarchy


From: Ihor Radchenko
Subject: Re: [PATCH] lisp/org.el: Add ability to sort tags by hierarchy
Date: Wed, 25 Dec 2024 08:17:54 +0000

Morgan Smith <morgan.j.smith@outlook.com> writes:

>> Also, what happens when there
>> are no tag groups defined? (These questions should be answered in the
>> docstring and the etc/ORG-NEWS entry you need to add, announcing the new
>> feature)
>
> Fallback to `org-sort-function'.

I am not sure if it is the best idea to hard-code using
`org-sort-function' here.

What if a user wants specific `org-sort-function' for, say, table
sorting, but something else for tags?
Secondary sorting would better be customizeable.

Maybe you can have a function generator that will work like

(org-tags-sort-hierarchy-by org-sort-function)
or
(org-tags-sort-hierarchy-by #'string<)

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]