implement sorting by title and rating