<?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 : CXTPItemC&#111;nstraints::Sort fails to sort</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPItemC&#111;nstraints::Sort fails to sort]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 07:05:36 +0000</pubDate>
  <lastBuildDate>Sun, 12 Sep 2004 10:00:22 +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=1166</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[CXTPItemC&#111;nstraints::Sort fails to sort : Thank you. The problem you reported...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1166&amp;PID=3097&amp;title=cxtpitemconstraintssort-fails-to-sort#3097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1166<br /><strong>Posted:</strong> 12 September 2004 at 10:00am<br /><br /><P>Thank you. The problem you reported has been corrected and will be included in the next product release.</P><P>Fixed versrion of Sort method is:</P><P>void CXTPItemConstraints::Sort()<BR>{<BR>&nbsp;CStringList lstSorted;<BR>&nbsp;POSITION pos = GetHeadPosition();<BR>&nbsp;while (pos)<BR>&nbsp;{<BR>&nbsp;&nbsp;CString str = GetNext(pos);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;POSITION posSorted = lstSorted.GetHeadPosition();<BR>&nbsp;&nbsp;POSITION posInsert = (POSITION)-1;<BR>&nbsp;&nbsp;while (posSorted)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if (GetNext(posSorted) &gt; str)<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;posInsert = posSorted;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;if (posInsert == (POSITION)-1)<BR>&nbsp;&nbsp;&nbsp;lstSorted.AddHead(str);<BR>&nbsp;&nbsp;else if (posSorted != posInsert)<BR>&nbsp;&nbsp;&nbsp;lstSorted.InsertBefore(posInsert, str); <BR>&nbsp;&nbsp;else lstSorted.AddTail(str);<BR>&nbsp;}</P><P>&nbsp;RemoveAll();<BR>&nbsp;AddTail(&amp;lstSorted);<BR>&nbsp;<BR>}</P>]]>
   </description>
   <pubDate>Sun, 12 Sep 2004 10:00:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1166&amp;PID=3097&amp;title=cxtpitemconstraintssort-fails-to-sort#3097</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPItemC&#111;nstraints::Sort fails to sort : Given the following strings, the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1166&amp;PID=3081&amp;title=cxtpitemconstraintssort-fails-to-sort#3081</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=608">Torlack</a><br /><strong>Subject:</strong> 1166<br /><strong>Posted:</strong> 10 September 2004 at 7:28pm<br /><br />Given the following strings, the sort routine fails:<br><br>"Label"<br>"Button"<br><br>posInsert and posSorted are both NULL and this "Button" gets added to the end of the string list.<br><br>This is with version 9.0.&nbsp; We haven't had a chance to install 9.1 so I don't know if this has been fixed yet.<br>]]>
   </description>
   <pubDate>Fri, 10 Sep 2004 19:28:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1166&amp;PID=3081&amp;title=cxtpitemconstraintssort-fails-to-sort#3081</guid>
  </item> 
 </channel>
</rss>