Sort the activities data set by the variable that contains the starting date. Do not sort by the CALID variable when producing combined calendar output.


proc sort data=well.act;
   by date;
run;