Sort data set NEWTEMP in order by city.
proc sort data=newtemp;
   by city month;
run;