Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Drupal 6, I have added fivestar widget to 'Story' nodes. Now I want to make a view to sort the stories according to their average fivestar ratings. But I don't see Fivestar among the 'Sort criteria', so how can I do the sorting based on Fivestar?

share|improve this question
up vote 5 down vote accepted

To start with, just enable the top_content default view which comes with the VotingAPI module. Its Fivestar display has the sorting set up as follows:

Relationship: Vote results
Add sort criterion: Vote results: Value, Relationship: Voting results

share|improve this answer
You don't have to configure anything. Once you've installed the modules and enabled the top_content view, at the pages /top-rated-points and /top-rated-percent there's the list of top rated content. Anyway, don't touch the relationship, have a look at the Vote results: Value Rating field and its formatting options. – Jan Tomka Aug 1 '11 at 3:55
This seems to actually sort on something other than the average vote... If a node has been voted on by many users, should I be able to sort the nodes by "average vote" using this method? If so It doesn't seem to be working. – Brad Hein Mar 28 '13 at 18:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.