in reply to Sorting by season
my %seasons; @seasons{qw(SM AU WI SP)} = (1..4); sub by_hash { $seasons{$a} <=> $seasons{$b}; } [download]