Sort the activities data set by the variable containing the starting date. You are not required to sort the holidays data set.
proc sort data=allacty;
   by date;
run;