Howdy,

i am trying to use Views to sort stories by their voting result (descending) but seems the order does not reflect this..

also seems that -1 are counted as 1, actually what i am experiencing is commented at http://drupal.org/node/70045

can anyone confirm or help please?

NOTE: attached is the view i am using. Sorting by voting result 'ascending' seems to work though..

thanks a lot

CommentFileSizeAuthor
voteupdown-view.txt1.7 KBmarcoBauli

Comments

marcoBauli’s picture

running a cron sorts things better! :P

..still the -1s counted as 1 remains..ty

marcoBauli’s picture

Title: Wrong sorting with Views » Top voted nodes: wrong sorting with Views

hmm...nope..it worked just for one day, but adding more nodes broke it definitely...

nodes with an average vote of 1 are displayed before those with avrg vote of 2..then 1s again (you can check at http://webhost.aconfronto.com/top/delmese/web%20host )

tryed also adding an extra votingapi filter as adviced here, but nothing..

Help apreciated!

formicin’s picture

I'm having the same problem. It just doesn't sort right. Did you guys make it work?

roleychiu’s picture

i have the same problem. using 4.7. it is quite frustrating. The voting sort seems not to work with the TEASER VIEWS. with standard views like list or table or even grid, they seem to work, but the most important view type (teaser list) seems to mess the sort orders up (nodes with 1 vote are showing up before nodes with 2 votes)

frjo’s picture

Category: bug » support

This is a problem with Views and Voting API so marked as support.

mstef’s picture

does anyone know if the sorting thing was figured out yet?

i just realized it doesn't work on my site and I am freaking out..

thanks

marcoBauli’s picture

Title: Top voted nodes: wrong sorting with Views » VotingAPI/Views Integration - something's wrong [2]
Project: Vote Up/Down » Voting API
Category: support » bug

things are moving on another issue between Views and Voting API in the latter's queue at http://drupal.org/node/63430

Voting API integration seems not too well integrated with Views. Moving this issue there then in case someone can take it into consideration

eaton’s picture

Status: Active » Fixed

As of this evening at 2:06 AM, views integration for VotingAPI has been rewritten from scratch. All hail views! The good news? It should actually work. The bad news? You'll need to remove and re-add any VotingAPI fields that you had on existing Views. This shouldn't be problematic, as the old views integration was completely broken anyhow.

Caveats: Output formatting of vote results, etc is still being finished. In addition, much more testing is needed before it can be said that the new integration code is 'ready for prime time.' But it's definitely much better. I'm going to be closing the existing threads regarding VotingAPI and Views because all of them point to known issues with the *old* versions of the code. Those interested in testing the new code can download the latest VotingAPI from: http://drupal.org/node/128605

Thanks for your patience!

marcoBauli’s picture

such good news is this! i was just waiting for this fix to launch a small website...will try to test next week and report back here. Thx lot!

Anonymous’s picture

Status: Fixed » Closed (fixed)
marcoBauli’s picture

Title: VotingAPI/Views Integration - something's wrong [2] » VotingAPI/Views Integration 4.7 - something's wrong [2]
Status: Closed (fixed) » Active

reopening this, as seems the new version (latest rewritten from scratch release) is only for 5.0... is a 4.7 backport in the plans? Thank you very much

eaton’s picture

Status: Active » Closed (won't fix)

Unfortunately, there's no 4.7 backport for the current features planned.