in reply to Re^2: sort direction
in thread sort direction
$ perl -wle'use overload q!""!=>sub{0},fallback=>1; $x=bless[0]; $y=bl +ess[1]; print map @$_, sort { $b <=> $a or $b cmp $a } $x, $y; print map @$_, reverse sort { $a <=> $b or $a cmp $b } $x, $y' 01 10
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: sort direction
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 |