in reply to Sorting hashes with values

I wouldn't be suprised if this is a FAQ. You just have to supply the right sub to sort:
@sorted_events = sort { $dates{$a} <=> $dates{$b} } keys %dates;
Hope this helps,

Jeroen
"We are not alone"(FZ)
Update: Added that s. Thx Beatnik and ar0n

Replies are listed 'Best First'.
Re: Re: Sorting hashes with values
by nysus (Parson) on Apr 09, 2001 at 20:18 UTC
    Got it. Forgot about those FAQs. Thanks.