When we use the Datatables style plugin for a view and leave the column to default sort by as None, the view still sorts the first sortable column by default. The reason I think is that in the theme preprocessor, where the settings are moved to Javascript, the key aaSorting is not set until there is at least one row to default sort by.
Here is a small patch that seems to fix this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | views-default-sort-setting-not-respected-1379570-6.patch | 427 bytes | ey |
| datatables.patch | 490 bytes | amarnus |
Comments
Comment #1
amarnus commentedMinor change to issue title.
Comment #2
7wonders commentedWorks for me.
Comment #3
cdeces commentedWorks for me too.
I have the results sorted by Views and Datatables sorting set to none.
Comment #4
jeebsuk commentedThis also works for me.
Comment #5
jeebsuk commentedComment #6
ey commentedRe-rolled for the current dev version
Comment #8
ey commentedThanks @amarnus, I've committed the patch to the dev branch.