added sort method for index table, properly formatted dates: