matthieugomez / sumup

summarize by groups in Stata
MIT License
26 stars 6 forks source link

sumup sorts the dataset #3

Closed sergiocorreia closed 9 years ago

sergiocorreia commented 9 years ago

-sumup- does a few bys which rearrange the dataset. It's common practice for commands that report tables or run regressions not to change the dataset, so I feel it's a bug (I was surprised after a sumup when I couldn't create timeseries vars).

A simple fix would be to add the sortpreserve option when declaring the program.