in reply to Genesis of a sort routine

Interesting process, thanks.

Here's a good checklist to keep in mind when writing sort routines. It's intended for C++ or .NET, but it applies to perl as well.

I think all of your variants are ok, but it's a good list to have handy just in case you need to figure out why sort is core dumping :)


Mike

Replies are listed 'Best First'.
Re: Re: Genesis of a sort routine
by greenFox (Vicar) on Nov 07, 2003 at 06:24 UTC

    Nice link, thanks.

    Interesting to see the other approaches in the "think outside of the box category" -or at least outside the box I was in :-) The data set is small enough (10-15 entries max) that efficiency is not a real issue but it is good to be aware of other techniques for later. My thanks to every-one who responded.

    --
    Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho