Stata Gsort

The gsort command is an extended sort command.


Usage

gsort foo +bar -baz

If a key variable is specified without a prefix or with a plus sign (+) prefix, then cases are sorted in ascending order for that variable. If it is specified with a minus sign (-) prefix, cases are instead sorted in descending order for that variable.


See also

Stata manual for gsort


CategoryRicottone

Stata/Gsort (last edited 2023-06-08 19:55:23 by DominicRicottone)