From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How can you sort an Org clock table? Date: Wed, 16 Apr 2014 18:26:12 +0200 Message-ID: <87wqepw76r.fsf@bzg.ath.cx> References: <87bnwnl6qs.fsf@gmail.com> <877g7bkwhk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaT1v-0000Y7-1d for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 12:49:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaT1l-0008I3-UA for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 12:49:47 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:50951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaT1l-0008Hk-NO for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 12:49:37 -0400 Received: by mail-wi0-f176.google.com with SMTP id r20so1703059wiv.3 for ; Wed, 16 Apr 2014 09:49:36 -0700 (PDT) In-Reply-To: (Noah Slater's message of "Mon, 31 Mar 2014 12:18:37 +0200") 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: Noah Slater Cc: Nick Dokos , emacs-orgmode@gnu.org 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