When using the traditional table header AJAX sorting, the results do not get saved to the draggable order.
For example, lets say you have a draggable view of nodes and have enabled the table headers to function as sorting criteria, the user should be able to click the table headers (thereby changing the sort order), save, and have that order reflected in the draggable interface.
This is essential when ordering massive amounts of data. You may want all nodes to be order by title, and just 'tweak' it with views draggable, instead of having to manually order everything alpha-numerically by hand.
Comments
Comment #1
ygerasimov commentedIn table display view tabledrag.js script sets the values of the weight's selectboxes. And during sorting by column it simply not triggered.
If you would like to save the order by title (or anything else), just sort table and then move any row up and back (so tabledrag.js will be triggered and it will set all the weights for you), then Save.
There was weird bug that I have fixed. Commit http://drupalcode.org/project/draggableviews.git/commit/49774da so please update the code.
Comment #3
gumanov commentedI'd like to see if a fix is possible for this.
It used to work properly in Drupal 6, so I'm curious what has changed.
In D6, when you sorted by using a table column header, and then hit "Save" on DraggableViews, it would save the order that was set by the table header sort.
No longer the case for D7.
Any ideas?