SORT VARIABLES
SORT VARIABLES
sorts the variables in the active dataset based on the values of the
selected dictionary attribute.
SORT VARIABLES [BY] {NAME } [({A})}
{TYPE } {D}
{FORMAT }
{LABEL }
{VALUES }
{MISSING }
{MEASURE }
{ROLE }
{COLUMNS }
{ALIGNMENT }
{ATTRIBUTE name}
If there are any pending transformations, this command reads the active dataset and causes execution of any pending commands. Otherwise, it takes effect immediately without reading the active dataset.
Release History
Release 16.0.
- Command introduced.
Release 18.0.
-
ROLE
keyword introduced.
Example
SORT VARIABLES BY NAME (A).