added sort() and show() to Index