<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MySQL ORDER BY FIELD &#8211; Custom Field Sorting</title>
	<atom:link href="http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/feed" rel="self" type="application/rss+xml" />
	<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php</link>
	<description>me and stupid works....!!!</description>
	<lastBuildDate>Thu, 22 Jul 2010 01:45:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Vijay Shankar</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-35181</link>
		<dc:creator>Vijay Shankar</dc:creator>
		<pubDate>Tue, 13 Apr 2010 07:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-35181</guid>
		<description>Awesome options and THANKs.. this is a good option to sort the records in ascending or descending order and have the exceptional values that is those parameters in the field will be sorted last.
Thanks to Copper and Puneet Pugalia and all the others</description>
		<content:encoded><![CDATA[<p>Awesome options and THANKs.. this is a good option to sort the records in ascending or descending order and have the exceptional values that is those parameters in the field will be sorted last.<br />
Thanks to Copper and Puneet Pugalia and all the others</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodolfo</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-34937</link>
		<dc:creator>Rodolfo</dc:creator>
		<pubDate>Thu, 18 Mar 2010 21:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-34937</guid>
		<description>All I have to say is THANKS!!!! for the custom order sort.... with the FIELD technique.... 
awesome!... thanks....</description>
		<content:encoded><![CDATA[<p>All I have to say is THANKS!!!! for the custom order sort&#8230;. with the FIELD technique&#8230;.<br />
awesome!&#8230; thanks&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JuksWebGuy</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-32416</link>
		<dc:creator>JuksWebGuy</dc:creator>
		<pubDate>Thu, 20 Aug 2009 02:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-32416</guid>
		<description>Bookmarked :)</description>
		<content:encoded><![CDATA[<p>Bookmarked <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoltan H</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-31887</link>
		<dc:creator>Zoltan H</dc:creator>
		<pubDate>Wed, 22 Jul 2009 21:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-31887</guid>
		<description>This is very cool - you just saved me a lot of time doing my own custom pageinate method (CakePHP framework) :)</description>
		<content:encoded><![CDATA[<p>This is very cool &#8211; you just saved me a lot of time doing my own custom pageinate method (CakePHP framework) <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Puneet Pugalia</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-31482</link>
		<dc:creator>Puneet Pugalia</dc:creator>
		<pubDate>Tue, 07 Jul 2009 09:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-31482</guid>
		<description>Nice.

Example for string based custom ordering(for which I came to this article):
ORDER BY FIELD(day, &#039;Monday&#039;, &#039;Tuesday&#039;, &#039;Wednesday&#039;, &#039;Thursday&#039;, &#039;Friday&#039;)</description>
		<content:encoded><![CDATA[<p>Nice.</p>
<p>Example for string based custom ordering(for which I came to this article):<br />
ORDER BY FIELD(day, &#8216;Monday&#8217;, &#8216;Tuesday&#8217;, &#8216;Wednesday&#8217;, &#8216;Thursday&#8217;, &#8216;Friday&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MTG</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-31207</link>
		<dc:creator>MTG</dc:creator>
		<pubDate>Sat, 20 Jun 2009 04:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-31207</guid>
		<description>&lt;a href=&quot;#comment-26540&quot; rel=&quot;nofollow&quot;&gt;@nayana adassuriya&lt;/a&gt; 
MAX()

If this is red, I would seriously suggest that the owner of this site secure it..</description>
		<content:encoded><![CDATA[<p><a href="#comment-26540" rel="nofollow">@nayana adassuriya</a><br />
MAX()</p>
<p>If this is red, I would seriously suggest that the owner of this site secure it..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nayana adassuriya</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-26540</link>
		<dc:creator>nayana adassuriya</dc:creator>
		<pubDate>Wed, 31 Dec 2008 04:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-26540</guid>
		<description>can anybody explain me how to get only maximum or heights value of a field.

thanks</description>
		<content:encoded><![CDATA[<p>can anybody explain me how to get only maximum or heights value of a field.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imthiaz</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-20788</link>
		<dc:creator>Imthiaz</dc:creator>
		<pubDate>Tue, 26 Aug 2008 12:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-20788</guid>
		<description>The function Field give the weight of the value based on the list  :-)</description>
		<content:encoded><![CDATA[<p>The function Field give the weight of the value based on the list  <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Copper</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-20779</link>
		<dc:creator>Copper</dc:creator>
		<pubDate>Tue, 26 Aug 2008 08:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-20779</guid>
		<description>try this &quot;select *,Field(status,3,2,4,1) from tbl Order By Field(status,3,2,4,1)&quot; and you will see how it works :-)</description>
		<content:encoded><![CDATA[<p>try this &#8220;select *,Field(status,3,2,4,1) from tbl Order By Field(status,3,2,4,1)&#8221; and you will see how it works <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Copper</title>
		<link>http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php/comment-page-1#comment-20778</link>
		<dc:creator>Copper</dc:creator>
		<pubDate>Tue, 26 Aug 2008 08:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/programming/mysql-order-by-field-custom-field-sorting.php#comment-20778</guid>
		<description>http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_field

you can use order by rand() if you want to randomize the result and so on...</description>
		<content:encoded><![CDATA[<p><a href="http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_field" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_field</a></p>
<p>you can use order by rand() if you want to randomize the result and so on&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
