Closed (fixed)
Project:
Voting API
Version:
6.x-2.x-dev
Component:
Views Integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2009 at 20:46 UTC
Updated:
17 Oct 2009 at 03:30 UTC
i would like to sort a view by the point total and the number of votes. (votes are cast using Vote Up/Down) for example, node A with a point total of 3 and 10 votes sorts above node B with a point total of 3 and 3 votes.
i can't see how to do this. in order to sort on the value of the point total, i have to define a "Node: Vote results" relationship and set the Aggregation function to "Total score", and then sort on "Vote results: Value". and though i seem to be able to then create a second Vote results relationship, i can't use it for sorting - i can't distinguish between the two.
what am i missing about how to use this? or is it actually something that can't be done?
Comments
Comment #1
ChrisRut commentedHave a look at this step-by-step instructional videocast on lullabot: Building Views with Fivestar and VotingAPI
Should get you started.
Comment #2
ChrisRut commentedComment #3
brad.bulger commentedthanks. the key was the Label field in the relationship definition - setting each relationship up with a different Label value, those labels are then selectable in the Relationship select field when i add a Sort criterion. as usual, it's perfectly logical now that i understand it :)