emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Sorting nodes by clocked time


From: Sacha Chua
Subject: Re: [O] Sorting nodes by clocked time
Date: Thu, 17 Apr 2014 20:09:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

Noah Slater <address@hidden> writes:

Hello, Noah, all!

> Using this a bit, it doesn't quite do what I want it to do.
> Is there any way to sort recursively?
> At the moment, calling org-sort-entries on the whole buffer only sorts the
> top level nodes.

Here's a rather inefficient hack (but hey, it seems to work =) ):

(defun sacha/org-sort-recursively (type)
        (org-map-entries
         (lambda ()
                 (condition-case nil
                                 (org-sort-entries nil type)
                         (error nil)))))

Call with M-: (sacha/org-sort-recursively ?K) or merge the code into
your own.

Sacha




reply via email to

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