<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress Ideas &#187; Topic: Independent ASC/DESC in multiple ORDER BY statement.</title>
		<link>http://wordpress.org/ideas/topic/independent-ascdesc-in-multiple-order-by-statement</link>
		<description>WordPress Ideas &#187; Topic: Independent ASC/DESC in multiple ORDER BY statement.</description>
		<language>en-US</language>
		<pubDate>Tue, 18 Jun 2013 05:20:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/ideas/rss/topic/independent-ascdesc-in-multiple-order-by-statement" rel="self" type="application/rss+xml" />

		<item>
			<title>prophecy2040 on "Independent ASC/DESC in multiple ORDER BY statement."</title>
			<link>http://wordpress.org/ideas/topic/independent-ascdesc-in-multiple-order-by-statement#post-24267</link>
			<pubDate>Fri, 01 Mar 2013 18:26:36 +0000</pubDate>
			<dc:creator>prophecy2040</dc:creator>
			<guid isPermaLink="false">24267@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>I came across the need for this just the other day on two separate sites I was working on. I ended up having to hook into the <code>posts_orderby</code> filter and modify it for the certain instance I needed - so it was a lot more work than it should have been. </p>
<p>With the more versatile uses of WordPress sites these days, the need arises to perform more complex queries to get the right data. And who wants to have to write their own custom query calls when WP_Query is so great and easy to use?</p>
<p>I mainly just want to agree with extending the WP_Query class to allow for this functionality. With the great features like the meta_queries and the integration of the custom post type taxonomy - it just falls flat without the ability to sort the multiple columns independently. </p>
<p>Don Fischer
</p>]]></description>
					</item>
		<item>
			<title>Simon on "Independent ASC/DESC in multiple ORDER BY statement."</title>
			<link>http://wordpress.org/ideas/topic/independent-ascdesc-in-multiple-order-by-statement#post-24163</link>
			<pubDate>Thu, 07 Feb 2013 14:06:58 +0000</pubDate>
			<dc:creator>Simon</dc:creator>
			<guid isPermaLink="false">24163@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>It can be usefull, thx
</p>]]></description>
					</item>
		<item>
			<title>leemon on "Independent ASC/DESC in multiple ORDER BY statement."</title>
			<link>http://wordpress.org/ideas/topic/independent-ascdesc-in-multiple-order-by-statement#post-24160</link>
			<pubDate>Wed, 06 Feb 2013 19:57:21 +0000</pubDate>
			<dc:creator>leemon</dc:creator>
			<guid isPermaLink="false">24160@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>WP_Query supports ordering results by multiple columns, but does not currently support independent ASC/DESC declarations on those columns. Instead, it concatenates the ORDER and ORDER BY statements together.</p>
<p>In some cases, it would be beneficial to independently set the order for these columns. An example offered on WP-Hackers:</p>
<p>I have a situation where I want to order a list of post both by author and date using WP_Query which isn't a problem since 'orderby' lets me do that. But I want the author part sorted ascending and date part sorted descending.</p>
<p>A normal MySql statement would end with ORDER BY author ASC, date DESC.</p>
<p>We should extend WP_Query to allow users to set their ordering parameters independently. This should be done in such a way as to not break backwards compatibility.</p>
<p><a href="http://core.trac.wordpress.org/ticket/17065" rel="nofollow">http://core.trac.wordpress.org/ticket/17065</a>
</p>]]></description>
					</item>

	</channel>
</rss>
