Sort the activities data set by the variable containing the starting date.
Do not sort by the CALID variable when producing combined calendar output.
proc sort data=well.act; by date; run;