emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christoph LANGE <math.semantic.web@gmail.com>
To: Chaitanya Krishna Ande <icymist@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Sorting CLOCK entries
Date: Sat, 07 Mar 2015 20:22:59 +0100	[thread overview]
Message-ID: <54FB5013.8010209@gmail.com> (raw)
In-Reply-To: <mcq35a$9bc$1@ger.gmane.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)

  reply	other threads:[~2015-03-07 19:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 15:40 Sorting CLOCK entries Chaitanya Krishna Ande
2015-03-07 19:22 ` Christoph LANGE [this message]
2015-03-08  5:51   ` Xavier Maillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54FB5013.8010209@gmail.com \
    --to=math.semantic.web@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=icymist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).