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
In reply to Re^2: sort direction
by BrowserUk
in thread sort direction
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |