emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* sort headers by tags possible?
@ 2019-04-08 21:07 Xebar Saram
  2019-04-08 21:58 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: Xebar Saram @ 2019-04-08 21:07 UTC (permalink / raw)
  To: org mode

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

Hi all

does anyone know if its possible to sort headers by tags?
lets say i have this

* header 1 . :3star:
* header 2 . :4star:
* header 3 . :3star:

can i sort by tags (alphnumeric) so all 3star tags with start followed by
4star etc

thx

best

Z

[-- Attachment #2: Type: text/html, Size: 476 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sort headers by tags possible?
  2019-04-08 21:07 sort headers by tags possible? Xebar Saram
@ 2019-04-08 21:58 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2019-04-08 21:58 UTC (permalink / raw)
  To: Xebar Saram, org mode

Xebar Saram <zeltakc@gmail.com> writes:

> Hi all
>
> does anyone know if its possible to sort headers by tags?
> lets say i have this
>
> * header 1 . :3star:
> * header 2 . :4star:
> * header 3 . :3star:
>
> can i sort by tags (alphnumeric) so all 3star tags with start followed by
> 4star etc

Try calling org-sort and sorting on the TAGS property: `C-c ^ r` then
selecting "TAGS".

Offhand I don't know how that handles multiple tags, but, if that
doesn't do what you want, you can always supply a custom key and/or
comparison function to org-sort-entries (even when calling it
interactively).

-- 
Kyle

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-08 21:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08 21:07 sort headers by tags possible? Xebar Saram
2019-04-08 21:58 ` Kyle Meyer

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).