With the arrival of the XML format to Word files (DOCX files) it got easier to work with the XML structure of the document. From Word 2003 on, you can manage the hierarchical structure of your document if you use the correct styles. For example, Word can now sort sections and even sort the text beneath the paragraphs along with the titles.
You can access the structure of your document in Word by clicking on View and checking the box next to Navigation Pane. Suppose you want to sort the titles in our document alphabetically, so that you first have the section ‘Example of a topic’, then ‘Examples of tables’, and so on.
Sort the sections as follows:
Instead of sorting automatically, you can also click and drag the titles to put the sections in the order you want.