I tried running it and it worked perfectly, although in this case the variable $dates will be set to true or false instead of an array containing the sorted dates since the sort() function return either true or false.
instead try this
$dates = explode("; ", $date, -1);
sort($dates);
also check your php verson since support for negative limits in the explode() function was not introduced until v5.1.0