in reply to Re: Sorting with perl
in thread Sorting with perl

In fact, I didn't even think of the stability of the sort, assuming all keys would be mentioned in the guide-file anyway.

--
http://fruiture.de

Replies are listed 'Best First'.
Re: Sorting with perl
by Abigail-II (Bishop) on Aug 12, 2002 at 14:51 UTC
    But even in the one example given it's shown that keys can appear multiple times. You don't have to assume that, it's given. And as you notice, where duplicate keys appear in the input, they appear in the same order in the output. Hence the stability.

    Abigail