Added ability to sort on the index page.