I'm using mysql
there are two tables
vote
app_id user_id
2 1
3 1
2 2
app
id title content
1 xx xxxx
2 yy yyyy
3 zz zzzz
I want to sort app table by the number of user's vote . in this example , the result should be
id title content
2 yy yyyy
3 zz zzzz
1 xx xxxx
any suggestion?