I am building a website where people can rate other user profile's on a scale of 1-5.
My question is:
How do i make it so that every rating a user receives the average is calculated. Then depending on a users average rating they are given a rank number. The user with the highest average rating is ranked number 1 and so on and so on.