emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] sort lists by highest level entries


From: Rainer Stengele
Subject: Re: [O] sort lists by highest level entries
Date: Wed, 06 Mar 2013 16:56:52 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

Am 06.03.2013 16:51, schrieb Nicolas Goaziou:
> Rainer Stengele <address@hidden> writes:
> 
>> Am 06.03.2013 15:30, schrieb Nicolas Goaziou:
>>> Hello,
>>>
>>> Rainer Stengele <address@hidden> writes:
>>>
>>>> having
>>>>
>>>>       - [2013-01-24 Do] text
>>>>       - [2013-01-25 Fr] text
>>>>       - [2013-02-01 Fr] text
>>>>
>>>
>>> [...]
>>>
>>>
>>>> I would like to sort the highest level entries, alphabetically would do
>>>> in this case, ending up with
>>>>
>>>>       - [2013-02-01 Fr] text
>>>>       - [2013-01-25 Fr] text
>>>>       - [2013-01-24 Do] text
>>>>
>>>
>>> [...]
>>>
>>>> org-sort and org-sort-entries does not what I want.
>>>> Did I miss something obvious?
>>>
>>> You mean alphabetically, but in reverse order: C-c ^ A
>>>
>>>
>>> Regards,
>>>
>>
>> I mark the region and do tried. I get "Nothing to sort".
>> There are no headlines in that region.
> 
> You want to sort a list.  Point should be on one of its items when
> calling the command.
> 
> 
> Regards,
> 

Awesome!

That did it. Thanks Nicolas.
I reread the manual:

C-c ^     (org-sort)
    Sort same-level entries. When there is an active region, all entries
in the region will be sorted. Otherwise the children of the current
headline are sorted. The command prompts for the sorting method, which
can be alphabetically, numerically, by time (first timestamp with active
preferred, creation time, scheduled time, deadline time), by priority,
by TODO keyword (in the sequence the keywords have been defined in the
setup) or by the value of a property. Reverse sorting is possible as
well. You can also supply your own function to extract the sorting key.
With a C-u prefix, sorting will be case-sensitive.

I cannot find the hint to have to be on a list item. It looked more
promising to mark the region.

How can I begin to help work on the documentation?

Rainer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]