Sorting a NotesDocumentCollection by multiple field values (Show’n Tell Thursday)

I have been using Joe Littons sortCollection function with success to sort a NotesDocumentCollection by the value in a specific field name. However the function can only sort by one field value and I recently had the requirement to be able to sort by multiple field values.

Max Flodén has created a function that does exactly that: sorts a NotesDocumentCollection by one or more field values. But the code from Max uses Evaluate and @Sort to do the actual sorting – and therefore has problems with quotes in the values and apparently also a problem with large collections (see comments to his post).

So I have combined the best from the two sort functions – the sortValues function from Joe Litton that uses Shell sort and the option to sort by multiple field values from Max Flodén – to get a function that sorts a NotesDocumentCollection by one or more field values.

Update: I have updated the sort function to use a fast and easy way of creating an empty NotesDocumentCollection introduced by Peter von Stöckel.

Update November 21: During testing I found an unnecessary loop in the sortCollection function. I have therefore updated the sort function.

Update December 9, 2011: The function is now available on the new OpenNTF XSnippets site.

Lotus Domino and 64-bit support

Starting with release 7.0.1 Lotus Domino is supported on 64-bit versions of Windows, Linux, Solaris, AIX, and i5/OS. 64-bit enables the Lotus Domino server to address memory above 2 GB.

The current Lotus Domino server is still 32-bit based. A 64-bit version of the Lotus Domino server will enter beta testing at the same time that Hannover and Domino Next ship.

[Via dominoblog.com]

For more information on Domino and 64-bit please see the article called “The 64-bit question?” on the Lotus Notes & Domino pages and the FAQ on the Lotus Domino support pages.

Technorati tags: