#24687 closed enhancement (duplicate)
WP_Query applies `order` only to last key in `orderby`
Reported by: | andy | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
If you need something like ORDER BY menu_order DESC, ID DESC
you are forced to use filters. Instead let's allow orderby
to specify either ASC
or DESC
for each key. Furthermore let's allow orderby
to be written naturally with spaces and/or commas (while not strictly checking their correctness as SQL).
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Duplicate of #17065.