Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#12 | Table_Views_sorted_incorrectly.png | 104.24 KB | dtabach |
#5 | sorting_test_vote_relationship_works.jpeg | 53.52 KB | yurg |
#5 | sorting_test_fivestar_doesnt_work.jpeg | 64.84 KB | yurg |
Comments
Comment #1
ericduran CreditAttribution: ericduran commentedI could swear we fixed this in the dev version. We add a sort handler for the fivestar field.
I'll do more testing.
Comment #2
Sinan Erdem CreditAttribution: Sinan Erdem commentedEric, 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.
Comment #3
Sinan Erdem CreditAttribution: Sinan Erdem commentedNope, it is not working with the latest dev.
Also putting sort criteria in Views is not sorting correctly.
Comment #4
msedlacek CreditAttribution: msedlacek commentedI'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?
Comment #5
yurg CreditAttribution: yurg commentedHi 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.
Comment #6
whiteph CreditAttribution: whiteph commentedPlease test with 7.x-2.1 release and report back, as there have been a lot of fixes applied since then.
Comment #7
coolman7 CreditAttribution: coolman7 commentedI'm using 7.x-2.1 and similar problems still exist. Sorting in views based on average vote does not sort perfectly.
Comment #8
troybthompson CreditAttribution: troybthompson commentedHaving the same problem. Any progress?
Comment #9
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commentedPlease 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.
Comment #10
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commentedComment #12
dtabach CreditAttribution: dtabach commentedThe same issue here, using v7.x-2.2.
Table Views sorted by rating not working correctly.
I cannot reopen the issue.