Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This sorts like:foreach (reverse sort {$one{$a} cmp $one{$b} || $a cmp $b} (keys %one) +)
Instead of4 3 2 14 13
How can I fix this?14 13 4 3 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting sorts 13 as less than 2
by rafl (Friar) on Mar 22, 2006 at 00:17 UTC | |
|
Re: Sorting sorts 13 as less than 2
by merlyn (Sage) on Mar 22, 2006 at 00:17 UTC | |
by pKai (Priest) on Mar 22, 2006 at 20:55 UTC | |
|
Re: Sorting sorts 13 as less than 2
by davido (Cardinal) on Mar 22, 2006 at 05:39 UTC |