– from InDesign eMagazine
To quickly place a list of words in alphabetical order, make sure each word is in its own paragraph and select the entire list.

Then open the Scripts panel (Window > Automation > Scripts). Go to Samples > JavaScript, and find the listing for SortParagraphs.jsx. Double-click this script and InDesign automatically alphabetizes the list of words.

This script also sorts numbers from lowest to highest. Unfortunately, it puts 10, 11, and 12 immediately after 1 and before 2, so it’s not exactly a perfect sorter.

— Sandee Cohen
Senior Editor, InDesign Magazine; Author

Posted by Maurizia