I'm really curious about how to create an SQL query to order questions depending the votes_up and votes_down. (The votes can be the sum of both, votes_up + votes_down.)
- Question
has_manyanswers - Answer
belongs_toone question
The answer table is like:
Answer(id, answer, votes_up, votes_down)