in reply to Re: sorting mm/dd/yy
in thread sorting mm/dd/yy
Instead of declaring a sort block that calls your sort routine explicitly, with $a and $b as args, you should write a sub that processes $a and $b directly, and just give the name of the sub to sort. Here's an example:
sub backwards { $b cmp $a } sort backwards @a;
|
|---|