<?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: Dynamic Sort With LINQ</title>
	<atom:link href="http://www.thereforesystems.com/dynamic-sort-with-linq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thereforesystems.com/dynamic-sort-with-linq/</link>
	<description>a learning effort by Deepak Kapoor</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:29:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sean B</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-227543</link>
		<dc:creator>Sean B</dc:creator>
		<pubDate>Tue, 31 Jan 2012 17:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-227543</guid>
		<description>How to I handle if I want the sort column to order by nulls &quot;last&quot;?</description>
		<content:encoded><![CDATA[<p>How to I handle if I want the sort column to order by nulls &#8220;last&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhilash</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-181178</link>
		<dc:creator>Abhilash</dc:creator>
		<pubDate>Wed, 26 Oct 2011 18:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-181178</guid>
		<description>That was simply awesome!
I stayed away from LINQ because I find it hard to debug for complex queries.
I guess, I need to make my hands more dirty with LINQ.
Thanks for the excellent post :)</description>
		<content:encoded><![CDATA[<p>That was simply awesome!<br />
I stayed away from LINQ because I find it hard to debug for complex queries.<br />
I guess, I need to make my hands more dirty with LINQ.<br />
Thanks for the excellent post :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jovica Milenovic</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-138823</link>
		<dc:creator>Jovica Milenovic</dc:creator>
		<pubDate>Sun, 24 Jul 2011 11:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-138823</guid>
		<description>You can also use reflection:

sortedList = (from n in createData()                              orderby LinqHelper.GetDynamicSortProperty(n, &quot;PropertyName&quot;) ascending
select n).ToList();


 public static class LinqHelper
        {
            public static object GetDynamicSortProperty(object item, string propName)
            {
                return item == null ? null : item.GetType().GetProperty(propName).GetValue(item, null);
            }
        }</description>
		<content:encoded><![CDATA[<p>You can also use reflection:</p>
<p>sortedList = (from n in createData()                              orderby LinqHelper.GetDynamicSortProperty(n, &#8220;PropertyName&#8221;) ascending<br />
select n).ToList();</p>
<p> public static class LinqHelper<br />
        {<br />
            public static object GetDynamicSortProperty(object item, string propName)<br />
            {<br />
                return item == null ? null : item.GetType().GetProperty(propName).GetValue(item, null);<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dotnetter</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-137428</link>
		<dc:creator>dotnetter</dc:creator>
		<pubDate>Thu, 21 Jul 2011 11:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-137428</guid>
		<description>Is there already an answer on the following question:

Hello,
Great article!! I’m glad I found this…
Now I just would like to know how to modify your Sort() function to obtain something like this dynamically (sorting multiple members, ascending or descending):
var collection =
from c in cities
orderby c.Name, c.Country descending
select c;
Thank you so much! Cheers</description>
		<content:encoded><![CDATA[<p>Is there already an answer on the following question:</p>
<p>Hello,<br />
Great article!! I’m glad I found this…<br />
Now I just would like to know how to modify your Sort() function to obtain something like this dynamically (sorting multiple members, ascending or descending):<br />
var collection =<br />
from c in cities<br />
orderby c.Name, c.Country descending<br />
select c;<br />
Thank you so much! Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-118025</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Thu, 16 Jun 2011 22:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-118025</guid>
		<description>Most welcome Chris.</description>
		<content:encoded><![CDATA[<p>Most welcome Chris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-118000</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 16 Jun 2011 22:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-118000</guid>
		<description>Thanks mate, that was very helpful.</description>
		<content:encoded><![CDATA[<p>Thanks mate, that was very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tos</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-13548</link>
		<dc:creator>Tos</dc:creator>
		<pubDate>Wed, 16 Dec 2009 15:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-13548</guid>
		<description>Hello,

Great article!! I&#039;m glad I found this...

Now I just would like to know how to modify your Sort() function to obtain something like this dynamically (sorting multiple members, ascending or descending):

var collection =
    from c in cities
    orderby c.Name, c.Country descending
    select c;

Thank you so much! Cheers</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Great article!! I&#8217;m glad I found this&#8230;</p>
<p>Now I just would like to know how to modify your Sort() function to obtain something like this dynamically (sorting multiple members, ascending or descending):</p>
<p>var collection =<br />
    from c in cities<br />
    orderby c.Name, c.Country descending<br />
    select c;</p>
<p>Thank you so much! Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-8431</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Thu, 20 Aug 2009 07:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-8431</guid>
		<description>Bablo,

I hope that article was of help to you.</description>
		<content:encoded><![CDATA[<p>Bablo,</p>
<p>I hope that article was of help to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bablo</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-8416</link>
		<dc:creator>Bablo</dc:creator>
		<pubDate>Wed, 19 Aug 2009 16:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-8416</guid>
		<description>God Bless You!!!</description>
		<content:encoded><![CDATA[<p>God Bless You!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dynamic Sort With LINQ To SQL &#124; One .Net Way</title>
		<link>http://www.thereforesystems.com/dynamic-sort-with-linq/comment-page-1/#comment-453</link>
		<dc:creator>Dynamic Sort With LINQ To SQL &#124; One .Net Way</dc:creator>
		<pubDate>Wed, 19 Nov 2008 11:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thereforesystems.com/dynamic-sort-with-linq/#comment-453</guid>
		<description>[...] ago I wrote a post showing how to do dynamic sort with LINQ. That approach worked well with LINQ To Objects. Today I spotted a question on the forums where [...]</description>
		<content:encoded><![CDATA[<p>[...] ago I wrote a post showing how to do dynamic sort with LINQ. That approach worked well with LINQ To Objects. Today I spotted a question on the forums where [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

