<?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 : Bug/Issue with orderby GUIDs in cache</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Bug/Issue with orderby GUIDs in cache</description>
  <pubDate>Mon, 13 Apr 2026 05:05:54 -700</pubDate>
  <lastBuildDate>Wed, 21 Jul 2010 19:09:34 -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=1985</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>Bug/Issue with orderby GUIDs in cache : Yep, we ran into this as well....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1985&amp;PID=7737#7737</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1985<br /><strong>Posted:</strong> 21-Jul-2010 at 7:09pm<br /><br /><P>Yep, we ran into this as well.&nbsp; We'll take care of it along with the String equality issues. ;)</P><DIV></DIV>]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 19:09:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1985&amp;PID=7737#7737</guid>
  </item> 
  <item>
   <title>Bug/Issue with orderby GUIDs in cache : Slightly unusual bug here...SQL...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1985&amp;PID=7714#7714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1985<br /><strong>Posted:</strong> 20-Jul-2010 at 11:24pm<br /><br />Slightly unusual bug here...<br><br>SQL Server does not order GUIDs in the same way as .NET, so if you query against the cache you will get very different search order results to the server's returned order.<br><br>According to Microsoft's doco the SQL Server uses only the last eight digits of the GUID for sorting. This is a total pain in the bum, but such is life.<br>We use the following extension to Guid to ensure our internal sorts match SQL Server's:<br><br>public static int CompareToSql(this Guid left, Guid value)<br>{<br>&nbsp; return (left.ToString().Substring(24).CompareTo(value.ToString().Substring(24)));<br>}<br><br>The cache in DF appears to do a regular sort, so in some cases (such as ours, surprise surprise) it breaks if the QueryStrategy is not set to QueryStrategy.DataSourceOnly<br><br>Just another interesting issue found while converting an EF4 app to IdeaBlade :)<br><br>I'll include this in an incident report.<br>]]>
   </description>
   <pubDate>Tue, 20 Jul 2010 23:24:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1985&amp;PID=7714#7714</guid>
  </item> 
 </channel>
</rss>