About This Code
Brief Description:
Sort Class
Contributor:
Heiko Fischer
Notes Version:
R6.x, R5.x, R7.x
Last Modified:
03 Apr 2006
OpenNTF Disclaimer
All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.
Code / Description
Ok, so sortation is by no means a new topic, but nevertheless I'd like to share a handy class I created a long time ago which serves just this purpose.
The class supports five different sort algorithms and the same amount of sort methods, and is quite easy to use. See the "About" document for a description, and the "Sort.Class" script library for the implementation details.
Usage / Example
Click the "Sort Demo..." action button in the default view for a simple demonstration.
Note that in order to overcome the 64k limit for data in a single text field, a Rich Text field is being used in the demo form to display the sort result. This implies that the document created for this purpose has to be saved in the database.
Code Attachments
Comments
Posted by Joseph LeMay on 11/27/2007 10:52:50 AMThank You
That was easy. I should buy you one of those Staples "easy" buttons.
Posted by Bill Clugston on 06/26/2008 05:10:09 PMVery nice and clean
Nice, clean code with clear directions.
Thanks