The way to sort first by year, then month, then day,
though I haven't seen what the structure of your elements is. That might indicate another approach such as a Schwarzian Transfornm.sort { $hashYear{$a} <=> $hashYear{$b} or $hashMonth{$a} <=> $hashMonth{$b} or $hashDay{$a} <=> $hashDay{$a} } @unsorted;
After Compline,
Zaxo
In reply to Re: Sorting Criteria
by Zaxo
in thread Sorting Criteria
by wizard341
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |