In the booklet that I am writing in latex, one chapter has about 20 sections, which have just been added to at the end when something else has needed to be written about. They are of the form of - --8<---------------cut here---------------start------------->8--- \section*{Rhubarb and custard} Ipsum lorenzum alal balall aka blurb \section*{Apple pie and cream} Even more blurb, etc. --8<---------------cut here---------------end--------------->8--- I now want to have all the sections in alphabetical order, but how can I do it please? How can I move all the sections and their following text From the commandline please? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.93.1