fix pagination to correctly order by sum of votes, and then paginate, instead of paginating, and then ordering each page.