If I understand well, you've used the TOC feature to do it!
So, sort the paras and use a simple regex to do it!
2 clicks, 2 seconds! … and happy new year!
… Or, create an index:
This script written by the very clever Martin Fischer for ID CS4 still works with ID CC 2015 (!!!) and will help you.
Just insert a simple grep style in the para style as: ^.+ associated to a "none" char style, play it and generate the index!