From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noah Slater Subject: Re: How can you sort an Org clock table? Date: Wed, 16 Apr 2014 19:01:45 +0200 Message-ID: References: <87bnwnl6qs.fsf@gmail.com> <877g7bkwhk.fsf@gmail.com> <87wqepw76r.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1bafe19fbb504f72bdfe2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaTDb-0000do-4C for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 13:01:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaTDW-0004fz-Ew for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 13:01:51 -0400 Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]:61050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaTDW-0004fi-A3 for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 13:01:46 -0400 Received: by mail-yh0-f47.google.com with SMTP id 29so10993059yhl.20 for ; Wed, 16 Apr 2014 10:01:45 -0700 (PDT) In-Reply-To: <87wqepw76r.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Nick Dokos , emacs-orgmode@gnu.org --001a11c1bafe19fbb504f72bdfe2 Content-Type: text/plain; charset=ISO-8859-1 Thanks Bastien! I'll look into this and report back. On 16 April 2014 18:26, Bastien wrote: > Hi Noah, > > from master, you can now use a :sort parameter in clocktable > to sort a column. For example: > > #+BEGIN: clocktable :maxlevel 2 :scope file :sort (2 . ?t) > #+CAPTION: Clock summary at [2014-04-16 mer. 18:12] > | Headline | Time | > |--------------+--------| > | *Total time* | *0:34* | > |--------------+--------| > | STRT abc | 0:15 | > | STRT def | 0:19 | > #+END: > > The (2 . ?t) means: "sort the second column by time." > > Let me know if it works for you, > > -- > Bastien > --001a11c1bafe19fbb504f72bdfe2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks Bastien! I'll look into this and report back.


On 16 Apr= il 2014 18:26, Bastien <bzg@gnu.org> wrote:
Hi Noah,

from master, you can now use a :sort parameter in clocktable
to sort a column. =A0For example:

#+BEGIN: clocktable :maxlevel 2 :scope file :sort (2 . ?t)
#+CAPTION: Clock summary at [2014-04-16 mer. 18:12]
| Headline =A0 =A0 | =A0 Time |
|--------------+--------|
| *Total time* | *0:34* |
|--------------+--------|
| STRT abc =A0 =A0 | =A0 0:15 |
| STRT def =A0 =A0 | =A0 0:19 |
#+END:

The (2 . ?t) means: "sort the second column by time."

Let me know if it works for you,

--
=A0Bastien

--001a11c1bafe19fbb504f72bdfe2--