Morgan Smith <morgan.j.sm...@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>