I have a database structure like this (tables):
products
id
title
product_ratings
id
product_id
score
ip_address
so imagine we need to sort products by ratings.
ordering by the average rating is not good enough, this means that an article with only one score of 5 would outrank articles with multiple 4 score ratings.
what can I do for this issue?