<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Silverlight: Dynamic OrderBy</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Silverlight: Dynamic OrderBy</description>
  <pubDate>Tue, 21 Apr 2026 22:13:11 -700</pubDate>
  <lastBuildDate>Thu, 29 Jul 2010 10:43:41 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2001</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Silverlight: Dynamic OrderBy : Well, I used the term &amp;#034;test&amp;#034;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7916#7916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 29-Jul-2010 at 10:43am<br /><br />Well, I used the term "test" quite loosely - I ran a single query and it worked.&nbsp; Here's the query - <BR>&nbsp;&nbsp;&nbsp;&nbsp; var customersQuery = _em1.Customers<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Where(c =&gt; c.ContactTitle == "Sales Representative")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .OrderBy("CompanyName")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; as EntityQuery&lt;Customer&gt;;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _em1.ExecuteQueryAsync&lt;Customer&gt;(customersQuery, GotCustomers, null);<DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>The changes to the DynamicLibrary were hacks, just to see if the code would compile.&nbsp; I'll post it here, but I want to emphasize this is neither tested nor endorsed by IdeaBlade, and certainly not supported - it's just my hacking to try the DL in Silverlight.</DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/uploads/11/DynamicLibrary.cs.txt" target="_blank">uploads/11/DynamicLibrary.cs.txt</A></DIV>]]>
   </description>
   <pubDate>Thu, 29 Jul 2010 10:43:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7916#7916</guid>
  </item> 
  <item>
   <title>Silverlight: Dynamic OrderBy : Do you have the code that you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7915#7915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=836" rel="nofollow">jkowalski</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 29-Jul-2010 at 9:24am<br /><br />Do you have the code that you test with?<DIV>&nbsp;</DIV><DIV>Thanks for the info. I'll give it a try.</DIV>]]>
   </description>
   <pubDate>Thu, 29 Jul 2010 09:24:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7915#7915</guid>
  </item> 
  <item>
   <title>Silverlight: Dynamic OrderBy : Actually, some of it does. The...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7816#7816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 27-Jul-2010 at 8:46am<br /><br />Actually, some of it does.&nbsp; The ClassFactory does not work in Silverlight, along with the CreateClass methods on DynamicExpression, but if you remove or comment all that out you can get the DynamicLibrary working.&nbsp;&nbsp; I only tested the dynamic OrderBy so don't know what else might fail at run time, but this library is&nbsp;pretty handy. ]]>
   </description>
   <pubDate>Tue, 27 Jul 2010 08:46:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7816#7816</guid>
  </item> 
  <item>
   <title>Silverlight: Dynamic OrderBy : FYI: This does not work with Silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7807#7807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=836" rel="nofollow">jkowalski</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 26-Jul-2010 at 12:34pm<br /><br />FYI: This does not work with Silverlight]]>
   </description>
   <pubDate>Mon, 26 Jul 2010 12:34:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7807#7807</guid>
  </item> 
  <item>
   <title>Silverlight: Dynamic OrderBy : found it.  Will this work with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7793#7793</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=836" rel="nofollow">jkowalski</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 23-Jul-2010 at 4:31pm<br /><br />found it.<DIV>&nbsp;</DIV><DIV>Will this work with Silverlight?</DIV>]]>
   </description>
   <pubDate>Fri, 23 Jul 2010 16:31:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7793#7793</guid>
  </item> 
  <item>
   <title>Silverlight: Dynamic OrderBy : Sorry but the link is no good....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7792#7792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=836" rel="nofollow">jkowalski</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 23-Jul-2010 at 3:59pm<br /><br />Sorry but the link is no good. <span style="font-size:10px"><br /><br />Edited by jkowalski - 23-Jul-2010 at 4:00pm</span>]]>
   </description>
   <pubDate>Fri, 23 Jul 2010 15:59:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7792#7792</guid>
  </item> 
  <item>
   <title>Silverlight: Dynamic OrderBy : You might find something here:  LINQ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7791#7791</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 23-Jul-2010 at 3:45pm<br /><br />You might find something here:<br /><br /><a href="http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx%20" target="_blank">LINQ Dynamic Query Library</a>]]>
   </description>
   <pubDate>Fri, 23 Jul 2010 15:45:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7791#7791</guid>
  </item> 
  <item>
   <title>Silverlight: Dynamic OrderBy :  There has got to be a better...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7786#7786</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=836" rel="nofollow">jkowalski</a><br /><strong>Subject:</strong> 2001<br /><strong>Posted:</strong> 23-Jul-2010 at 1:04pm<br /><br /><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><FONT color=#000000 size=3 face="Times New Roman">There has got to be a better way to dynamically order a Silverlight Blade query.</FONT></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT color=#000000 size=3 face="Times New Roman">&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><FONT color=#000000 size=3 face="Times New Roman">Please advise.</FONT></P><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>var</SPAN><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"> accounts = (<SPAN style="COLOR: #2b91af">IEntityQuery</SPAN>&lt;<SPAN style="COLOR: #2b91af">Account</SPAN>&gt;)accountQuery;<o:p></o:p></SPAN></DIV><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="COLOR: blue">var</SPAN> orderedQuery = accounts.OrderBy(a =&gt; a.AccountName);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="COLOR: blue">if</SPAN>(DefaultSortDirection == <SPAN style="COLOR: #2b91af">ListSortDirection</SPAN>.Ascending)<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas">{<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp; switch</SPAN> (DefaultSortColumn.ToLower())<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>{<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accountname"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>orderedQuery = accounts.OrderBy(a =&gt; a.AccountName);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accountid"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>orderedQuery = accounts.OrderBy(a =&gt; a.AccountID);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accountsubtype"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>orderedQuery = accounts.OrderBy(a =&gt; a.AccountSubtype);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accounttype"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>orderedQuery = accounts.OrderBy(a =&gt; a.AccountType);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"address1"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>orderedQuery = accounts.OrderBy(a =&gt; a.Address1);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></SPAN><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas">}<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas">}<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="COLOR: blue">else</SPAN><o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas">{<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">switch</SPAN> (DefaultSortColumn.ToLower())<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas">&nbsp;&nbsp;&nbsp; {<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accountname"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>orderedQuery = accounts.OrderByDescending(a =&gt; a.AccountName);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accountid"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>orderedQuery = accounts.OrderByDescending(a =&gt; a.AccountID);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accountsubtype"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>orderedQuery = accounts.OrderByDescending(a =&gt; a.AccountSubtype);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"accounttype"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>orderedQuery = accounts.OrderByDescending(a =&gt; a.AccountType);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">case</SPAN> <SPAN style="COLOR: #a31515">"address1"</SPAN>:<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>orderedQuery = accounts.OrderByDescending(a =&gt; a.Address1);<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">break</SPAN>;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></SPAN><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas">}<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas">}<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><SPAN style="COLOR: blue">return</SPAN> orderedQuery;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><o:p></o:p></SPAN>&nbsp;</P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face="Times New Roman">&nbsp;</FONT></o:p></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 23 Jul 2010 13:04:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2001&amp;PID=7786#7786</guid>
  </item> 
 </channel>
</rss>