Skip to content

SORT CASES

Sorts the cases of the active dataset.

SORT CASES [BY] var [(A|D)] [var [(A|D)] …].
Kind Data management
Body free-form body
Changes data yes, undoable
SORT CASES BY region (A) income (D).
  • The sort is stable. System-missing values sort first; strings sort by code point.
  • Very large datasets (over 2 million cases) are sorted out of core with DuckDB.

SORT VARIABLES, SPLIT FILE


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.