BG> Even better, sort the list stright away as you add
BG> items in. Insert them in the right place to start
BG> with. (That is, if it's appropiate to do so).
I recall a post from Jerry Coffin that said it was much less efficient to
sort a list as you build it. I don't have the specifics, but I do have faith
in Jerry.
I do have a utility program that builds a large list from a CSV spreadsheet
and after reading it into the list, I sort is with the LL merge sort in
Snippets. Seems to work fine and sure is easier than writing my own.
Bruce Wedding
bruce@scimisys.com
--- Maximus/2 3.01
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
|