Those looking for the source to a good quicksort, try consulting your GNU Emacs distribution. .../etc/qsort.c contains a fairly well documented, pretty fast quicksort. (If intuition serves me, it's a well-tuned bruiser of quicksort.) The code falls under the same General Public License as the rest of the FSF software. Regards, [Ag]