I've got a website with voting system where people can vote a review either up or down. For example: “Did you find this review helpful? [Yes] or [No]?”
In order to order the reviews by how much they were appreciated I'd like a single number to order them by. Just using the percentage of up votes doesn't cut it because it doesn't take the total number of votes into account. A review with 2 up votes and 0 down votes (100%) should not be shown before a review with 95 up votes and 5 down votes (95%).
Any ideas on which formula to use? Thanks.
You need only assign the value of $ 0$ to a downvote, and $1$ to an upvote, or, $(-1)\to \;$downvote, $1 \to\;$upvote. Then any review's score could be the sum of those upvote/downvote assignments.
You can play around with such assigned "weightings", to end up with a single numeric score to represent the quality of the review.
E.g. questions and answers here at math.se computes the "score" of both answers and questions using the assignment: $(-1)\to \;$[downvote], $1 \to\;$[upvote].
EDIT: As @gt6989b, the above scheme, does not take into account the distribution of scores, etc.
NOTE:
It all depends on what criteria you consider to be most relevant to the determination of the value of the rank of a given review.