in reply to Re: Sorting issues
in thread Sorting issues

There's no promise that sort is stable there (and it wasn't, depending on the version of Perl that you are using). Other solutions in this thread do the trick with a single sort: please look at those.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: Re: Re: Sorting issues
by Skylark (Beadle) on Jan 09, 2004 at 18:24 UTC
    merlyn: Agreed, my "combination sort" isn't the greatest. But the OP can combine the sort from other posts with the idea about changing the way his data is structured from my post to solve his problem.

    My main point was about the data structure's design more closely modeling the data itself. But thanks for your comment anyways, it's very true.

    update: subject line