From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Cave Subject: How to set a set of headlines (at the same level) Date: Thu, 16 Nov 2006 12:07:06 +1100 Message-ID: <200611160107.kAG176x0000353@mail01.syd.optusnet.com.au> Reply-To: charles_cave@optusnet.com.au Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: binary Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkVil-00087y-TX for emacs-orgmode@gnu.org; Wed, 15 Nov 2006 20:07:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkVik-00087T-3s for emacs-orgmode@gnu.org; Wed, 15 Nov 2006 20:07:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkVij-00087F-TG for emacs-orgmode@gnu.org; Wed, 15 Nov 2006 20:07:14 -0500 Received: from [211.29.132.182] (helo=mail01.syd.optusnet.com.au) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GkVij-0006NH-69 for emacs-orgmode@gnu.org; Wed, 15 Nov 2006 20:07:13 -0500 Received: from localhost.localdomain (webmail08.syd.optusnet.com.au [211.29.133.113]) by mail01.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id kAG176x0000353 for ; Thu, 16 Nov 2006 12:07:06 +1100 Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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