added sort by in cat view