Indesign-Sort is a project mainly written in JavaScript, it's free.
Sorts text in a Indesign
Copy the script to ~/Library/Preferences/Adobe InDesign/Version
Select a text frame with the text to sort. Double click the 'sortLinesAlphabetically.jsx' script from the Indesign Scripts Panel.