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: Noah Slater
Subject: Re: [O] Sorting nodes by clocked time
Date: Sun, 20 Apr 2014 11:48:25 +0200

Thanks Sacha, that's great!


On 18 April 2014 02:09, Sacha Chua <address@hidden> wrote:
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]