Differences between revisions 2 and 3
Revision 2 as of 2025-10-24 17:15:21
Size: 551
Comment: Rewrite
Revision 3 as of 2025-10-24 17:15:55
Size: 589
Comment: Fix capitalization
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Stata/Gsort

Stata Gsort

-gsort- is an extended -sort-.


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 2025-10-24 17:16:07 by DominicRicottone)