* convenience sort function
@ 2013-09-23 9:48 Christian Wittern
0 siblings, 0 replies; only message in thread
From: Christian Wittern @ 2013-09-23 9:48 UTC (permalink / raw)
To: Org Mode Mailing List
Dear org users,
I would like to define a convenience sort function to sort on a certain
property (e.g PRE), which I can assign to a key, so that I can avoid having
to type
C-^ r PRE <RET>
It seems that I want to call org-sort-entries, which has the following
signature:
(defun org-sort-entries
(&optional with-case sorting-type getkey-func compare-func property)
From the docstring, I learn that I have to use ?r to sort on properties and
the last parameter is the property to sort on, "PRE" in this case. However,
what I do not understand is what I should give for getkey-func and
compare-func.
Something like this
(org-sort-entries t ?r t t "PRE")
or this
(org-sort-entries t ?r nil nil "PRE")
does not work, and reading the source does not give me any clues (probably
because I do not understand what is going on....)
Any help would be apprectiated,
Christian
--
Christian Wittern, Kyoto
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-23 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-23 9:48 convenience sort function Christian Wittern
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).