<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Agence de Développement Informatique du Nord &#187; multiple</title>
	<atom:link href="http://blog.adin.pro/tag/multiple/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Multiple fields to sort  a magento collection</title>
		<link>http://blog.adin.pro/2013-03-07/multiple-fields-to-sort-a-magento-collection/</link>
		<comments>http://blog.adin.pro/2013-03-07/multiple-fields-to-sort-a-magento-collection/#comments</comments>
		<pubDate>Thu, 07 Mar 2013 15:27:12 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=135</guid>
		<description><![CDATA[<p>If you want to sort a collection on multiple field like that : You just have to have some setOrder() call on your collection like that : That&#8217;s all folk&#8230;</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-03-07/multiple-fields-to-sort-a-magento-collection/">Multiple fields to sort  a magento collection</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you want to sort a collection on multiple field like that :</p>
<pre class="brush: php; title: ; notranslate">
select * from toto order by field1 asc, field2 desc
</pre>
<p>You just have to have some setOrder() call on your collection like that :</p>
<pre class="brush: php; title: ; notranslate">
$myCollection-&gt;getCollection()
             -&gt;setOrder('field1', 'asc')
             -&gt;setOrder('field2', 'desc')
             ;
</pre>
<p>That&#8217;s all folk&#8230;</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-03-07/multiple-fields-to-sort-a-magento-collection/">Multiple fields to sort  a magento collection</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2013-03-07/multiple-fields-to-sort-a-magento-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
