in reply to Re: sort direction
in thread sort direction
With the sort as shown by the OP it will
P:\test>perl -e"print sort { $b <=> $a || $b cmp $a } qw/0a 0b 1a 1b/" 1b1a0b0a P:\test>perl -e"print reverse sort { $a <=> $b || $a cmp $b } qw/0a 0b + 1a 1b/" 1b1a0b0a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sort direction
by ysth (Canon) on Oct 10, 2005 at 04:24 UTC | |
by BrowserUk (Patriarch) on Oct 10, 2005 at 04:36 UTC | |
by ysth (Canon) on Oct 10, 2005 at 05:39 UTC | |
by BrowserUk (Patriarch) on Oct 10, 2005 at 07:28 UTC | |
by ysth (Canon) on Oct 10, 2005 at 09:56 UTC |