<?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="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Problem with sorting unicode text column</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Problem with sorting unicode text column]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 09:06:43 +0000</pubDate>
  <lastBuildDate>Thu, 09 Oct 2008 01:21:02 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12361</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Problem with sorting unicode text column : actually this is a pain in the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41790&amp;title=problem-with-sorting-unicode-text-column#41790</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 12361<br /><strong>Posted:</strong> 09 October 2008 at 1:21am<br /><br />actually this is a pain in the neck.<br /><br />You would need to subclass for all items.<br /><br />It would be good if a compare func could be installed into the report control that could be used to compare strings.  then this could be used to sort any field type that was a string.<br /><br />Otherwise you are constantly doing sad things like...<br /><br />class CXTPReportRecordItemCaseInsensitiveSortText : public CXTPReportRecordItemText<br />{<br />public:<br />  virtual int Compare(CXTPReportColumn* pColumn, CXTPReportRecordItem* pItem)<br />  {<br />&nbsp;&nbsp;&nbsp;&nbsp;return m_strText.CompareNoCase(pItem-&gt;GetCaption(pColumn));<br />  }<br />};<br /><br />and using CXTPReportRecordItemCaseInsensitiveSortText wherever you would otherwise use CXTPReportRecordItemText ]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 01:21:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41790&amp;title=problem-with-sorting-unicode-text-column#41790</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with sorting unicode text column : CXTPReportRecordItem::Compare  override...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41789&amp;title=problem-with-sorting-unicode-text-column#41789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 12361<br /><strong>Posted:</strong> 09 October 2008 at 1:04am<br /><br />CXTPReportRecordItem::Compare<br /><br />override this for each item in your records that you want to control sort order on.]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 01:04:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41789&amp;title=problem-with-sorting-unicode-text-column#41789</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with sorting unicode text column : SetRowsCompareFunc doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41788&amp;title=problem-with-sorting-unicode-text-column#41788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 12361<br /><strong>Posted:</strong> 09 October 2008 at 12:48am<br /><br />SetRowsCompareFunc doesn't look to be much use though<br /><br />since you don't get told which column is being sorted.]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 00:48:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41788&amp;title=problem-with-sorting-unicode-text-column#41788</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with sorting unicode text column : It&amp;#039;s using straight string...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41787&amp;title=problem-with-sorting-unicode-text-column#41787</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 12361<br /><strong>Posted:</strong> 09 October 2008 at 12:47am<br /><br />It's using straight string compare.<br /><br />I was just going to complain about this too - it should at least be doing case-insensitive sorting.<br /><br />Looks like there is a func to set sort callback, so you can do your own comparison...<br /><br />SetRowsCompareFunc<br /><br /><br />]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 00:47:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41787&amp;title=problem-with-sorting-unicode-text-column#41787</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with sorting unicode text column : Hi,there seems to be a problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41730&amp;title=problem-with-sorting-unicode-text-column#41730</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 12361<br /><strong>Posted:</strong> 07 October 2008 at 1:01pm<br /><br />Hi,<br>there seems to be a problem in sorting unicode (wide) text in a column.<br><br>A column with 500 records is filled with a presorted lastnames out of a database. No problem, sorting of mysql works fine.<br><br>If one clicks on the header of the 'lastname'-column, the sorting arrow appears and the column gets resorted by the ReportControl.<br><br>The correct order (of lastnames) returned by mysql is:<br>Tacke<br><b>test</b><br>Thiele<br><b>Ürün</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;-- Starts with german "Umlaut"<br>Volk<br>Zietlow<br><br>The ReportControl sorts like<br>Tacke<br>Thiele<br>Volk<br>Zietlow<br><b>test<br>Ürün<br></b><br>Small letters are sorted to the end, "Umlaute" (ö,ä,ü) which must be treated as o,a,u are sorted to the end, too. <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"><br>I haven't investigated further, perhaps anyone have observed/solved a similar problem?<br><br>Thanx, Marco<br><br>]]>
   </description>
   <pubDate>Tue, 07 Oct 2008 13:01:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12361&amp;PID=41730&amp;title=problem-with-sorting-unicode-text-column#41730</guid>
  </item> 
 </channel>
</rss>