in reply to Re: Re: Date comparison
in thread Date comparison
In the example above, change my @sorted = sort {str2time($a) <=> str2time($b)} @dates; to
my %cache; my @sorted = sort {($cache{$a} ||= str2time($a)) <=> ($cache{$b} ||= str2time($b)) } @dates;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Date comparison
by George_Sherston (Vicar) on Jul 08, 2002 at 09:48 UTC | |
by dws (Chancellor) on Jul 08, 2002 at 16:49 UTC |