added the sort by category