allow for sort for average rating and change logic to show rating only if number else blank