* Sorting CLOCK entries
@ 2015-02-27 15:40 Chaitanya Krishna Ande
2015-03-07 19:22 ` Christoph LANGE
0 siblings, 1 reply; 3+ messages in thread
From: Chaitanya Krishna Ande @ 2015-02-27 15:40 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sorting CLOCK entries
2015-02-27 15:40 Sorting CLOCK entries Chaitanya Krishna Ande
@ 2015-03-07 19:22 ` Christoph LANGE
2015-03-08 5:51 ` Xavier Maillard
0 siblings, 1 reply; 3+ messages in thread
From: Christoph LANGE @ 2015-03-07 19:22 UTC (permalink / raw)
To: Chaitanya Krishna Ande, emacs-orgmode
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sorting CLOCK entries
2015-03-07 19:22 ` Christoph LANGE
@ 2015-03-08 5:51 ` Xavier Maillard
0 siblings, 0 replies; 3+ messages in thread
From: Xavier Maillard @ 2015-03-08 5:51 UTC (permalink / raw)
To: Christoph LANGE; +Cc: Chaitanya Krishna Ande, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
Christoph LANGE <math.semantic.web@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.
[-- Attachment #2: Type: application/pgp-signature, Size: 1494 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-08 5:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 15:40 Sorting CLOCK entries Chaitanya Krishna Ande
2015-03-07 19:22 ` Christoph LANGE
2015-03-08 5:51 ` Xavier Maillard
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).