added sorting functionality from most viewd to recently added