Hello,

I can show the results of votes of nodes in a table as columns. And I set the vote result column of the table as "sortable". But clicking on table header does nothing. It should sort the nodes as descending and ascending, but it is not working.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ericduran’s picture

I could swear we fixed this in the dev version. We add a sort handler for the fivestar field.

I'll do more testing.

Sinan Erdem’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha2

Eric, I am sorry, I checked again and saw that I am using 7.x 2.0 alpha2. If you say that you fixed that after alpha2, then there should be no problem. I will test it soon.

Sinan Erdem’s picture

Version: 7.x-2.0-alpha2 » 7.x-2.x-dev

Nope, it is not working with the latest dev.

Also putting sort criteria in Views is not sorting correctly.

msedlacek’s picture

I've noticed the same issue. If I have a view of nodes of a specific content type that has a fivestar field, I add that fivestar field as an exposed sort criteria and the sorting is not correct. Is this supposed to sort based on the "votingapi_vote" table and within that the "value" field in the db?

yurg’s picture

Hi there.

Hope it's right issue to add my case. I have nodes with Fivestar field. After trying to add Views exposed sort by Fivestar field ( which doesn't work ) and add Table view sort column by Fivestar field ( which also doesn't work ) I came to quite widely proposed solution with Vote Relationship, based on Lullabot video ( http://drupal.org/node/1233404 ). Summary Views table was made to check correspondence between Fivestars and Votes Relationship http://i.imgur.com/pMUPf.png Can confirm Table fields sorting doesn't work, nor Fivestars exposed sort. Vote Relationship exposed sort works fine ( http://i.imgur.com/A4eSU.png ), but Table field sorting doesn't still. As a side note: shouldn't Fivestar Views sorting "useless" be noted somewhere?

*** UPD ***
http://drupal.org/node/1188828 : should be related.

whiteph’s picture

Issue summary: View changes

Please test with 7.x-2.1 release and report back, as there have been a lot of fixes applied since then.

coolman7’s picture

I'm using 7.x-2.1 and similar problems still exist. Sorting in views based on average vote does not sort perfectly.

troybthompson’s picture

Having the same problem. Any progress?

dbt102’s picture

Please test with 7.x-2.2 release and report back, as there have been a lot of fixes applied since then. Marking this as fixed. If you find the issue still exists, please reopen this issue.

dbt102’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

dtabach’s picture

The same issue here, using v7.x-2.2.
Table Views sorted by rating not working correctly.
I cannot reopen the issue.