in reply to Sorting Criteria

The way to sort first by year, then month, then day,

sort { $hashYear{$a} <=> $hashYear{$b} or $hashMonth{$a} <=> $hashMonth{$b} or $hashDay{$a} <=> $hashDay{$a} } @unsorted;
though I haven't seen what the structure of your elements is. That might indicate another approach such as a Schwarzian Transfornm.

After Compline,

Replies are listed 'Best First'.
Re: Re: Sorting Criteria
by wizard341 (Acolyte) on Aug 05, 2003 at 18:31 UTC
    Thanks alot guys, works perfectly now.