Q&A for Ubuntu users and developers
select PostId, count(Votes.Id) as Votecount from Votes group by PostId order by votecount desc