[wp-trac] [WordPress Trac] #15031: WP_Query can no longer sort by meta value
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 4 19:28:33 UTC 2010
#15031: WP_Query can no longer sort by meta value
---------------------------+------------------------------------------------
Reporter: aaroncampbell | Owner: scribu
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Query | Version: 3.1
Severity: normal | Keywords:
---------------------------+------------------------------------------------
Comment(by aaroncampbell):
The plan is to add another array element to each meta_query array called
'order'. You would be able to pass ASC or DESC and empty or not set would
mean "don't order based on this". I'm also incorporating the +0 fix into
this if you pass `'numeric'=>true` so that the order is as expected for
numeric types.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15031#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list