star rating works and sorting by rating