On Wed, Sep 24, 2008 at 04:53:54PM -0700, chromatic wrote: > On Tuesday 23 September 2008 09:35:05 Moritz Lenz wrote: > > > %hash.pairs.sort needs infix:<cmp> to work properly with Pair as input. > > > > It should be easy to add a multi that does this by first comparing the > > key, and if they are equal the value. > > > > When this is done most (or all) of the skip markers in > > t/spec/S29-hash/pairs.t can (hopefully) be removed. > > Something like this?
Alas, there was another thread that shows that Parrot's 'sort' method can't seem to handle comparison functions that have :multi on them. See RT #59520, as well as the thread starting around http://lists.parrot.org/pipermail/parrot-dev/2008-September/000028.html . Once that's fixed (or we come up with an alternative 'sort'), then this patch or something like it will probably work. Pm