//ads: ?> sort() not affecting original array while inside foreach loopphpsorting PHP Snippet 1:foreach ($dates['months'] as &$month)