I am testing views 3.x-dev in D7. It already works quite well!

I have a problem with sorting. In a simple views, I sort the views according to descending post date ("Node: Post date desc"), but the query is still ascending:

SELECT node.created AS node_created, node.nid AS nid FROM {node} node WHERE (( (node.status <> 0) AND (node.type IN (article)) )) ORDER BY node_created ASC LIMIT 10 OFFSET 0

The order of the nodes displayed doesn't change, no matter what I do.

I didn't see this one already in the issue queue yet.

Comments

mokko’s picture

PS: When I sort nodes according to node title it works as expected. When I sort according to update date it works,too so I will change the issue title to make it more precise.

mokko’s picture

Title: Sorting does not work » Sorting according to post date does not work
mokko’s picture

Status: Active » Closed (cannot reproduce)

After deleting the sort criteria and creating it again, it works as expected. Probably a reason to close this issue.

geerlingguy’s picture

Same here: I had an old view created during an earlier dev release, and the sorting wouldn't work, no matter what I did. I deleted the sort criteria, and re-added it, and it works now. Go figure.

malarchy’s picture

I found that the sort depended on the contextual filter settings, which I will have to learn more about. I changed the sort setting there.