in reply to Sorting by season

(re)Read sort. Either your subroutine must use $a and $b or it must have a prototype of ($$). Yours does not do the first and does not have the latter.