Adding sorting options for the directory rating and recentlyViewed