I have a site where I have a section for most popular lyrics. The case is that I want to Order the most pupular lyrics with respect to its ratings. And condition is, if the rating is same for two lyrics then I order by the counter which is the number of times rated.
The fields in database are rating_value and counter. For now I just using
".... ORDER BY rating_value";
Suggest me something for this kind of multiple ordering.