Generally, you can use calculated fields directly in the ORDER BY clause, for example ...
ORDER BY rating/rating_total DESC
... but I always find it simpler to create an alias and use that ...
SELECT *, rating/rating_total as rating_order
... (rest of sql)...
ORDER BY rating_order DESC
Having said that, which actual number (given your example) do you actually want to order by. If it's the 2.5 (average) then the calc seems to me to be ...
5*rating/rating_total ( ... = rating/(rating_total/5)) ... )