Stata Sort
The sort command re-orders rows of data.
Contents
Usage
sort foo bar baz
Cases are sorted according to each key variable in ascending order. Missing values are treated as arbitrarily high. Labeled missing values (i.e. .a through .z) are ordered alphabetically (in terms of the label) after the unlabeled missing values (.).