This is what I did:

1) I attached the Rate module +1/-1 widget to my content type.
2) added the relationship "Relationship: Content: Vote results" to the view I use to show all posts. I have tried various value types (currently set to points) and aggregation functions (currently Total score)
3) Added "sort criterion: Vote results: Function" as the only sorting criteria.

Then I had some friends go to the site and give some votes. I've tried figeting with different value types but nothing helps.

I am really surprised that this doesn't work becuase the votingapi_vote table looks nice. Every single vote is made up of a single row in the table and I thought that the Aggregation function "total score" should add up the votes to each ID. The total vote value shows up correctly in the teaser but the sorting isn't done.

Comments

Sigvard’s picture

Apparently it seems like

Add Sort criteria Vote results: Value

Is the criteria that create the most reasonable result. The only downside is that negative votes are shown ahead of unrated posts.

Edit: Which is solved by selecting "treat missing votes as zeros" in sort criteria view.

kopeboy’s picture

Issue summary: View changes

Which is NOT solved when you have negative values. But maybe that is a Views error.

My bad, it works