﻿<?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: Sorting a NotesDocumentCollection by multiple field values (Show&#8217;n Tell Thursday)</title>
	<atom:link href="http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/feed" rel="self" type="application/rss+xml" />
	<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sorting-notesdocumentcollection-by</link>
	<description>A blog on Lotus Notes, Lotus Domino, XPages and more</description>
	<lastBuildDate>Wed, 08 Feb 2012 18:51:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Martin</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-28852</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 15 Jul 2011 20:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-28852</guid>
		<description>Hi! Great code but it doesn&#039;t seem to work to sort numeric values - they get sorted as strings...

Is there a fix for it?

Thanks!!!</description>
		<content:encoded><![CDATA[<p>Hi! Great code but it doesn't seem to work to sort numeric values - they get sorted as strings...</p>
<p>Is there a fix for it?</p>
<p>Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Hewson</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-22755</link>
		<dc:creator>Paul Hewson</dc:creator>
		<pubDate>Sun, 13 Feb 2011 23:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-22755</guid>
		<description>I love it. It went crashin&#039; nasty to start with - but I realised passing in a dc from an external db was a problem. Added a new dbCollSource parameter to refer to when getting docs and creating my sorted collection and all was well.  Still, a great piece of work - many thanks for sharing it.</description>
		<content:encoded><![CDATA[<p>I love it. It went crashin' nasty to start with - but I realised passing in a dc from an external db was a problem. Added a new dbCollSource parameter to refer to when getting docs and creating my sorted collection and all was well.  Still, a great piece of work - many thanks for sharing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I have somehow contributed to OpenNTF &#124; Per Henrik Lausten</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-15639</link>
		<dc:creator>I have somehow contributed to OpenNTF &#124; Per Henrik Lausten</dc:creator>
		<pubDate>Mon, 12 Jul 2010 07:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-15639</guid>
		<description>[...] woke up this morning to a comment by David Jeyachandran to my blog post on Sorting a NotesDocumentCollection by multiple field [...]</description>
		<content:encoded><![CDATA[<p>[...] woke up this morning to a comment by David Jeyachandran to my blog post on Sorting a NotesDocumentCollection by multiple field [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Jeyachandran</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-15633</link>
		<dc:creator>David Jeyachandran</dc:creator>
		<pubDate>Mon, 12 Jul 2010 00:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-15633</guid>
		<description>Thank you Per Henrik Lausten!

I&#039;m using this in the Notes Reconn project at OpenNTF.
http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/Notes%20Reconn

Regards
David</description>
		<content:encoded><![CDATA[<p>Thank you Per Henrik Lausten!</p>
<p>I'm using this in the Notes Reconn project at OpenNTF.<br />
<a href="http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/Notes%20Reconn" rel="nofollow">http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/Notes%20Reconn</a></p>
<p>Regards<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thfcme</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-106</link>
		<dc:creator>thfcme</dc:creator>
		<pubDate>Tue, 20 Jan 2009 18:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-106</guid>
		<description>I&#039;m a little late to the party :-) But this script really helped me, thank you so much for adjusting the excellent original with the Shell sort. The only problem I had was with some dates (as a sorted column), that I had to change the code just a little, but other than that, works great. THANK YOU</description>
		<content:encoded><![CDATA[<p>I'm a little late to the party <img src='http://per.lausten.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  But this script really helped me, thank you so much for adjusting the excellent original with the Shell sort. The only problem I had was with some dates (as a sorted column), that I had to change the code just a little, but other than that, works great. THANK YOU</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-93</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 04 Jul 2008 17:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-93</guid>
		<description>once its over 500 documents the &#039;invalid documentid pops up&#039;</description>
		<content:encoded><![CDATA[<p>once its over 500 documents the 'invalid documentid pops up'</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-92</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 03 Jul 2008 21:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-92</guid>
		<description>I&#039;m getting stuck on this part. It says I can&#039;t find Universal ID. But I am trying to sort a Date-Time field&lt;br/&gt;&lt;br/&gt; Set collSorted = db.GetProfileDocCollection(&quot;Foo&quot;)  &#039; create an empty NotesDocumentCollection&lt;br/&gt; Forall y In arrSort&lt;br/&gt;  Set doc = db.GetDocumentByUNID(Right(y, 32))&lt;br/&gt;  Call collSorted.AddDocument(doc)&lt;br/&gt; End Forall</description>
		<content:encoded><![CDATA[<p>I'm getting stuck on this part. It says I can't find Universal ID. But I am trying to sort a Date-Time field</p>
<p> Set collSorted = db.GetProfileDocCollection("Foo")  ' create an empty NotesDocumentCollection<br /> Forall y In arrSort<br />  Set doc = db.GetDocumentByUNID(Right(y, 32))<br />  Call collSorted.AddDocument(doc)<br /> End Forall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-84</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 10 Apr 2008 15:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-84</guid>
		<description>This don&#039;t work for field Notes of data-time type...it&#039;s true?</description>
		<content:encoded><![CDATA[<p>This don't work for field Notes of data-time type...it's true?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-81</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 12 Mar 2008 17:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-81</guid>
		<description>Works like a champ!  Thanks for saving me hours of dev time!  Keep up the good work!</description>
		<content:encoded><![CDATA[<p>Works like a champ!  Thanks for saving me hours of dev time!  Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Adrian</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-80</link>
		<dc:creator>Thomas Adrian</dc:creator>
		<pubDate>Tue, 19 Feb 2008 22:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-80</guid>
		<description>Per, There is an array limit on arrays. which causes the sorting to halt.&lt;br/&gt;&lt;br/&gt;Array bounds must fall in the range -32768 to 32767, inclusive.&lt;br/&gt;&lt;br/&gt;Have you seen any update to this</description>
		<content:encoded><![CDATA[<p>Per, There is an array limit on arrays. which causes the sorting to halt.</p>
<p>Array bounds must fall in the range -32768 to 32767, inclusive.</p>
<p>Have you seen any update to this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katheeja</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-77</link>
		<dc:creator>Katheeja</dc:creator>
		<pubDate>Tue, 01 Jan 2008 17:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-77</guid>
		<description>Hello people,&lt;br/&gt;I was quite stuck with sorting for days .. Thanks for all those who had been in creation and in reincarnation of the code :) .. Happy New Year to All .. Code works great ..</description>
		<content:encoded><![CDATA[<p>Hello people,<br />I was quite stuck with sorting for days .. Thanks for all those who had been in creation and in reincarnation of the code <img src='http://per.lausten.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .. Happy New Year to All .. Code works great ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per Henrik Lausten</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-76</link>
		<dc:creator>Per Henrik Lausten</dc:creator>
		<pubDate>Thu, 20 Dec 2007 07:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-76</guid>
		<description>Hi Greg, excellent extension to the function. Thanks for your comment.</description>
		<content:encoded><![CDATA[<p>Hi Greg, excellent extension to the function. Thanks for your comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg G</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-75</link>
		<dc:creator>Greg G</dc:creator>
		<pubDate>Tue, 18 Dec 2007 21:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-75</guid>
		<description>Excellent post.  I extended your code a little because I needed to sort documents in a different database.  I simply pass the SortNDC function a database as well and add code so that if the passed db is nothing, the function should use the current database.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;Greg</description>
		<content:encoded><![CDATA[<p>Excellent post.  I extended your code a little because I needed to sort documents in a different database.  I simply pass the SortNDC function a database as well and add code so that if the passed db is nothing, the function should use the current database.</p>
<p>Thanks.</p>
<p>Greg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don McNally</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-44</link>
		<dc:creator>Don McNally</dc:creator>
		<pubDate>Thu, 11 Jan 2007 17:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-44</guid>
		<description>Hi. Your post was VERY timely for me and a project I was working on. I extended your code a little because I needed to sort in descending as well as ascending order. I just blogged it here: http://dmcnally.blogspot.com/2007/01/sntt-sorting-notesdocumentcollection.html</description>
		<content:encoded><![CDATA[<p>Hi. Your post was VERY timely for me and a project I was working on. I extended your code a little because I needed to sort in descending as well as ascending order. I just blogged it here: <a href="http://dmcnally.blogspot.com/2007/01/sntt-sorting-notesdocumentcollection.html" rel="nofollow">http://dmcnally.blogspot.com/2007/01/sntt-sorting-notesdocumentcollection.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per Henrik Lausten</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-35</link>
		<dc:creator>Per Henrik Lausten</dc:creator>
		<pubDate>Fri, 17 Nov 2006 12:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-35</guid>
		<description>Hi, I have just tested the sorting routine with 12.000 documents and it sorts the documents as expected.&lt;br/&gt;&lt;br/&gt;While doing the test I found that there is one loop that goes through all the documents which is not necessary for the sort to work. I will update this post with the new code.&lt;br/&gt;&lt;br/&gt;Perhaps this helps in your case. So please try the sort again when I have updated the code. Also make sure that it is the script that causes the problem and not something else such as network delays, server processing power etc.</description>
		<content:encoded><![CDATA[<p>Hi, I have just tested the sorting routine with 12.000 documents and it sorts the documents as expected.</p>
<p>While doing the test I found that there is one loop that goes through all the documents which is not necessary for the sort to work. I will update this post with the new code.</p>
<p>Perhaps this helps in your case. So please try the sort again when I have updated the code. Also make sure that it is the script that causes the problem and not something else such as network delays, server processing power etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-33</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 17 Nov 2006 11:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-33</guid>
		<description>If the document collection is around 10,000 the script is timing out. Any alternative method which can sort collection &gt; 10000</description>
		<content:encoded><![CDATA[<p>If the document collection is around 10,000 the script is timing out. Any alternative method which can sort collection > 10000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per Henrik Lausten</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-31</link>
		<dc:creator>Per Henrik Lausten</dc:creator>
		<pubDate>Tue, 31 Oct 2006 08:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-31</guid>
		<description>Hi Ulrich, yes you are - go ahead! Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Ulrich, yes you are - go ahead! Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulrich krause</title>
		<link>http://per.lausten.dk/blog/2006/10/sorting-notesdocumentcollection-by.html/comment-page-1#comment-29</link>
		<dc:creator>Ulrich krause</dc:creator>
		<pubDate>Mon, 30 Oct 2006 15:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://per.lausten.dk/blog/?p=84#comment-29</guid>
		<description>great job !!&lt;br/&gt;&lt;br/&gt;Am I allowed to use the code in my OpenNTF Project !!HELP!! ?&lt;br/&gt;&lt;br/&gt;regards &lt;br/&gt;&lt;br/&gt;Ulrich</description>
		<content:encoded><![CDATA[<p>great job !!</p>
<p>Am I allowed to use the code in my OpenNTF Project !!HELP!! ?</p>
<p>regards </p>
<p>Ulrich</p>
]]></content:encoded>
	</item>
</channel>
</rss>

