SORTOBS: sort observations into a specified order



Type which sortobs at the Stata prompt to determine which version you have installed. To install the most recent version of sortobs, copy/paste the following line of code:

net install sortobs, from("") replace

To install the version that was uploaded to SSC, copy/paste the following line of code:

ssc install sortobs, replace

These two versions are typically synced, but occasionally the SSC version may be slightly out of date.


sortobs is a Stata command that sorts observations into an order specified by the user.

For more details, see the Stata help file included in this package.


Julian Reif
University of Illinois