From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Re: Sorting CLOCK entries Date: Sat, 07 Mar 2015 20:22:59 +0100 Message-ID: <54FB5013.8010209@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUKJX-0001lf-Nt for emacs-orgmode@gnu.org; Sat, 07 Mar 2015 14:23:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUKJU-0008HH-Fq for emacs-orgmode@gnu.org; Sat, 07 Mar 2015 14:23:07 -0500 Received: from mail-we0-x241.google.com ([2a00:1450:400c:c03::241]:34776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUKJU-0008Gm-90 for emacs-orgmode@gnu.org; Sat, 07 Mar 2015 14:23:04 -0500 Received: by wesk11 with SMTP id k11so18431781wes.1 for ; Sat, 07 Mar 2015 11:23:03 -0800 (PST) In-Reply-To: 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: Chaitanya Krishna Ande , emacs-orgmode@gnu.org Chaitanya Krishna Ande on 2015-02-27 16:40: > I was wondering if there is a way to sort clock entries like in the > clock entries below. AFAIK org-mode doesn't have any dedicated support for this, … > The table is sorted in reverse chronological order except for the last > two. I was wondering if there is some to sort these entries so that the > last two entries sit in the right place. … and I'm not sure where this situation comes from (other than manual editing), > CLOCK: [2015-01-21 Wed 16:37]--[2015-01-21 Wed 16:53] => 0:16 > CLOCK: [2014-12-02 Tue 18:29]--[2014-12-02 Tue 18:57] => 0:28 > … > CLOCK: [2014-10-10 Fri 17:52]--[2014-10-10 Fri 18:55] => 1:03 > CLOCK: [2014-09-10 Wed 14:29]--[2014-09-10 Wed 16:29] => 2:00 > CLOCK: [2014-11-12 Wed 08:34]--[2014-11-12 Wed 08:52] => 0:18 > CLOCK: [2014-11-04 Tue 12:58]--[2014-11-04 Tue 13:28] => 0:30 … but a manual fix for this particular case is as easy as marking the affected range of lines and saying C-u M-x sort-lines. Cheers, Christoph -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Semantic Publishing Challenge: Assessing the Quality of Scientific Output ESWC, 31 May–4 June 2014, Portorož, Slovenia. https://tinyurl.com/SPChallenge15 Submission deadline 27 March (abstracts: 20 March)