Stata Sort

The sort command re-orders rows of data.


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 (.).


See also

Stata manual for sort


CategoryRicottone

Stata/Sort (last edited 2023-06-08 19:50:36 by DominicRicottone)