emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Morgan Smith <morgan.j.smith@outlook.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] lisp/org.el: Add ability to sort tags by hierarchy
Date: Wed, 25 Dec 2024 08:17:54 +0000	[thread overview]
Message-ID: <87ttas18i5.fsf@localhost> (raw)
In-Reply-To: <CH3PR84MB34246AE8F1F154B61C76A8D0C5032@CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM>

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	other threads:[~2024-12-25  8:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-15 12:35 [PATCH] lisp/org.el: Add ability to sort tags by hierarchy Morgan Smith
2024-06-15 14:25 ` Ihor Radchenko
2024-08-28 15:39   ` Ihor Radchenko
2024-08-28 16:10     ` Morgan Smith
2024-09-01 16:23       ` Ihor Radchenko
2024-12-24 21:48   ` Morgan Smith
2024-12-25  8:17     ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttas18i5.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=morgan.j.smith@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).