I'm trying to sort the default 'archive' view in descending order, but the query ends up with "ORDER BY created_year_month ASC" both when I select desc and asc order in the UI.
Any ideas?

Thanks for an awesome module :-)
Roald

CommentFileSizeAuthor
#5 sort1.png4.98 KBalexd73
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ff1’s picture

I have been able to repeat this bug exactly as described.

merlinofchaos’s picture

I can't duplicate this.

What, exactly, are you changing when you select desc/asc in the UI? What you should be changing is the "Action to take if argument is not present:" and changing it from "Summary, sorted ascending" to "Summary, sorted descending". When I do this, the view changes sorting appropriately.

ff1’s picture

Status: Active » Fixed

merlinofchaos: Thanks, you're right. I didn't understand the view properly. I didn't even realise views was capable of working in this way. There's so much to learn. :) Thanks for a great module!

roald: The 'Sort criteria' for the 'archive' view only applies when an argument has been specified. The argument should be in the form of %Y%m (e.g. 200807 for July 2008). When no argument is specified, a summary view is displayed, listing each month with a count of the nodes created during that month. To change the sort order of this, you need to click on 'Node: Created year + month' under 'Arguments' and then change the 'Action to take if argument is not present:' to 'Summary, sorted descending'.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

alexd73’s picture

FileSize
4.98 KB

Hi!

I have an alphabetical sort, but I want as a serial number of the month.

Can you help me?