added orderByColumn and orderByDirection for index view