emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to set a set of headlines (at the same level)
@ 2006-11-16  1:07 Charles Cave
  2006-11-16 12:12 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Cave @ 2006-11-16  1:07 UTC (permalink / raw)
  To: emacs-orgmode

I would like to see a feature to sort the set of branches into alphabetical order.
At the moment I have to manually move the subtrees up and done.

Here is an example:

Before sorting

* New words
** bird 
A bird can fly
*** sub topic
blah blah
** fred
A Fred is a frog
** cat
A cat is an animal
** aviary
Where birds are kept


After sorting...

* New words
** aviary
Where birds are kept
** bird 
A bird can fly
*** sub topic
blah blah (sub topics could appear in the tree)
** cat
A cat is an animal
** fred
A Fred is a frog


The sorting algorithm needs to call  org-move-subtree-up  and org-move-subtree-down 
depending on the comparison of adjacent headings.

How difficult would it be to add this functionality? The command should work
on a region.  I want to create an org-mode file of vocabulary. I note that it is
possible to sort table rows so that is a possible work around for me.

Charles

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-16 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-16  1:07 How to set a set of headlines (at the same level) Charles Cave
2006-11-16 12:12 ` Carsten Dominik

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).