[wp-trac] [WordPress Trac] #17065: Independent ASC/DESC in multiple ORDER BY statement.

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 30 02:58:47 UTC 2012


#17065: Independent ASC/DESC in multiple ORDER BY statement.
-------------------------------------------------+-------------------------
 Reporter:  ericmann                             |       Owner:  ericmann
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Query                                |  Review
 Severity:  normal                               |     Version:  3.1
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by nacin):

 * keywords:  has-patch needs-testing => has-patch needs-testing needs-unit-
     tests
 * type:  feature request => enhancement


Comment:

 Might be nice to break this out into a new class, similar to WP_Meta_Query
 and WP_Tax_Query, especially for testing purposes.

 For this to end up in core, we'll need two sets of tests: One, some unit
 tests that assert the resulting SQL based on various examples. Two, test
 how it works when integrated into WP_Query in terms of properly ordering
 posts. The integration tests should be based on a set of posts, similar to
 tests/query/results.php.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17065#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list