Reply To: bysort prefix with date format in asdoc messes up the date order 4 years ago Dear Dr Attaullah Shah Please find enclosed the Stata example file for my data. The code that I am running is : bys Time_period: asdoc sum Lerner_w