re-indexing the tabs when re-sorting
fixing syntax error
documenting the new reindex_tabs function
Merge pull request #22 from mrkrstphr/fix014

Fix issues arising after re-ordering tabs