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?
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.
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'.
Comments
Comment #1
ff1 CreditAttribution: ff1 commentedI have been able to repeat this bug exactly as described.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedI 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.
Comment #3
ff1 CreditAttribution: ff1 commentedmerlinofchaos: 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'.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
alexd73 CreditAttribution: alexd73 commentedHi!
I have an alphabetical sort, but I want as a serial number of the month.
Can you help me?