Re: [O] Sorting CLOCK entries

2015-03-07 Thread Christoph LANGE

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)



Re: [O] Sorting CLOCK entries

2015-03-07 Thread Xavier Maillard

Christoph LANGE math.semantic@gmail.com writes:

 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.

Awesome, I never think of the `sort-lines' function. Thank you !
-- Xavier.


pgpLt3lg2kqz_.pgp
Description: PGP signature


[O] Sorting CLOCK entries

2015-02-27 Thread Chaitanya Krishna Ande

Hello there,

I was wondering if there is a way to sort clock entries like in the 
clock entries below.


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.


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-12-02 Tue 11:50]--[2014-12-02 Tue 12:01] =  0:11
CLOCK: [2014-12-01 Mon 17:32]--[2014-12-01 Mon 17:57] =  0:25
CLOCK: [2014-10-27 Mon 17:10]--[2014-10-27 Mon 17:47] =  0:37
CLOCK: [2014-10-24 Fri 11:17]--[2014-10-24 Fri 11:24] =  0:07
CLOCK: [2014-10-30 Thu 11:22]--[2014-10-30 Thu 11:43] =  0:21
CLOCK: [2014-10-29 Wed 13:22]--[2014-10-29 Wed 13:37] =  0:15
CLOCK: [2014-10-29 Wed 12:05]--[2014-10-29 Wed 12:10] =  0:05
CLOCK: [2014-10-21 Tue 20:13]--[2014-10-21 Tue 20:31] =  0:18
CLOCK: [2014-10-21 Tue 19:03]--[2014-10-21 Tue 19:45] =  0:42
CLOCK: [2014-10-21 Tue 18:27]--[2014-10-21 Tue 18:32] =  0:05
CLOCK: [2014-10-21 Tue 11:33]--[2014-10-21 Tue 11:34] =  0:01
CLOCK: [2014-10-20 Mon 15:05]--[2014-10-20 Mon 15:37] =  0:32
CLOCK: [2014-10-20 Mon 11:55]--[2014-10-20 Mon 12:01] =  0:06
CLOCK: [2014-10-20 Mon 11:07]--[2014-10-20 Mon 11:53] =  0:46
CLOCK: [2014-10-17 Fri 15:43]--[2014-10-17 Fri 15:57] =  0:14
CLOCK: [2014-10-15 Wed 13:12]--[2014-10-15 Wed 13:28] =  0:16
CLOCK: [2014-10-15 Wed 11:44]--[2014-10-15 Wed 11:59] =  0:15
CLOCK: [2014-10-15 Wed 10:48]--[2014-10-15 Wed 10:53] =  0:05
CLOCK: [2014-10-13 Mon 18:23]--[2014-10-13 Mon 19:10] =  0:47
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

Best regards,
Chai