emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How can you sort an Org clock table?


From: Nick Dokos
Subject: Re: [O] How can you sort an Org clock table?
Date: Sun, 30 Mar 2014 21:06:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Noah Slater <address@hidden> writes:

> Yeah, tried that. Doesn't work! :(
>

AFAICT, it works fine on your first stackoverflow example.

There is probably no hope of getting this method to work the way you
want on your second example though: org-sort does not know anything
about the substructure of the table.  The only way I can think of is to
make the dynblock function that produces the table
(org-dblock-write:clocktable) do the sorting.


> On 30 March 2014 23:24, Nick Dokos <address@hidden> wrote:
>
>     Noah Slater <address@hidden> writes:
>    
>     > I posted a question on StackOverflow:
>     >
>     > 
> http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table
>     >
>     > Summary is: how do I sort an clock table by the % column?
>     >
>     > Is there anything "out there" I can use to get this working? If not,
>     > how complex a job would it be to write something that did this?
>     >
>     > If you point me in the right direction, I'll see what I can come up 
> with.
>     >
>    
>     Never tried on a clock table, but the following works on a generic
>     table, so I assume that it will work on a clock table too: put point
>     in the column by which you want to sort the table (in the body of the
>     table, not in the header) and say M-x org-sort RET n (I assume you
>     want numeric sorting, but org-sort provides several kinds). org-sort
>     is normally bound to C-c ^ too, so
>    
>         C-c ^ n
>    
>     should be all that's needed.
>     --
>     Nick
>

-- 
Nick




reply via email to

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