Added sort-by-column functionality to index page.