I've created a view to show a list of nodes of a certain content type. I want to sort that list by what rating the nodes have. So, something that has the most votes up would display first.

How can I do that? I don't see any option in Views to sort by rating.

Comments

weka’s picture

Component: User interface » Documentation

These steps are for version 6.x, but the steps should be the same for 7.x.

1. Add Relationship to your view Node: Vote results
    The Value type and Function depends on the widget type you use - see README.txt
2. Add Sort criteria Vote results: Value

Hope this helps.

jerrac’s picture

Thanks, that seems to be working. :D

weka’s picture

Status: Active » Closed (fixed)

Great, thanks for reporting back.

Anonymous’s picture

Status: Closed (fixed) » Active

i have made a view with node teasers and want to sort them by rating...no voting on the top to 5 stars on the bottom. i followed your instructions, but now the problem is that the node teasers without any rating disappears.

any ideas?

thanks

konsul

5kot’s picture

You could make the relationship you created for the vote-results optional, by un-ticking the "Require this relationship" checkbox. That should show the node teasers without a rating.

Anonymous’s picture

Status: Active » Fixed

works...

thanks...

regards...

konsul

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.