From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noah Slater Subject: Re: How can you sort an Org clock table? Date: Sat, 24 May 2014 20:33:04 +0200 Message-ID: References: <87bnwnl6qs.fsf@gmail.com> <877g7bkwhk.fsf@gmail.com> <87wqepw76r.fsf@bzg.ath.cx> <8761m4jo5z.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303f6a44a7ee8704fa299357 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoGks-00012g-Km for emacs-orgmode@gnu.org; Sat, 24 May 2014 14:33:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WoGkj-0000wV-9p for emacs-orgmode@gnu.org; Sat, 24 May 2014 14:33:14 -0400 Received: from mail-yh0-x232.google.com ([2607:f8b0:4002:c01::232]:62850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoGkj-0000wI-4d for emacs-orgmode@gnu.org; Sat, 24 May 2014 14:33:05 -0400 Received: by mail-yh0-f50.google.com with SMTP id 29so5299786yhl.37 for ; Sat, 24 May 2014 11:33:04 -0700 (PDT) In-Reply-To: <8761m4jo5z.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 --20cf303f6a44a7ee8704fa299357 Content-Type: text/plain; charset=UTF-8 Here's a broken example: #+BEGIN: clocktable :maxlevel 2 :link :scope file :sort (2 . ?T) #+END: * A CLOCK: [2014-05-24 Sat 10:00]--[2014-05-24 Sat 11:00] => 1:00 * B CLOCK: [2014-05-24 Sat 11:00]--[2014-05-24 Sat 12:30] => 1:30 * C CLOCK: [2014-05-24 Sat 12:30]--[2014-05-24 Sat 15:00] => 2:30 If you run C-c C-c on the clocktable, it will update, but the sorting is wrong. It should be in reverse order because it's "T" and not "t". Now: remove ":link" and try again. The sorting works! On 20 April 2014 12:22, Bastien wrote: > Noah Slater writes: > > > If you add ":link" to the BEGIN blog, the sorting doesn't appear to > > kick in. Bug, I expect. > > Please provide a reproducible example. > > -- > Bastien > --20cf303f6a44a7ee8704fa299357 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here's a broken example:

#+BEGIN: clocktable :maxlevel 2 :link :scope file :sort (2 . ?T)
#+END:

* A
CLOCK: [2014-05-24 Sat = 10:00]--[2014-05-24 Sat 11:00] =3D> =C2=A01:00
* B
CLOCK: [2014-05-24 Sat 11:00]--[2014-05-24 Sat 12:30] = =3D> =C2=A01:30
* C
CLOCK: [2014-05-24 Sat 12:30]--[= 2014-05-24 Sat 15:00] =3D> =C2=A02:30

If = you run C-c C-c on the clocktable, it will update, but the sorting is wrong= . It should be in reverse order because it's "T" and not &quo= t;t".

Now: remove ":link" and try again. The sortin= g works!


On 20 April 2014 12:22, Bastien <bzg@gnu.org> wrote:
Noah Slater <nslater@tumbolia.org> writes:

> If you add ":link" to the BEGIN blog, the sorting doesn'= t appear to
> kick in. Bug, I expect.

Please provide a reproducible example.

--
=C2=A0Bastien

--20cf303f6a44a7ee8704fa299357--