= SPSS Sort Cases = The '''`SORT CASES`''' command sorts cases. <> ---- == Usage == {{{ sort cases by foo bar(a) baz(d). }}} If a variable is followed by a parenthesized A (`(A)`) or up (`(UP)`), cases are sorted in ascending order. If a variable is followed by a parenthesized D (`(D)`) or down (`(DOWN)`), cases are sorted in descending order. Without a specification, ascending order is used by default. ---- == Data Model == The `SORT CASES` command is executed immediately, and the active dataset is read. The `SORT CASES` command does not recognize the [[SPSS/Temporary|TEMPORARY]] status. ---- == See also == [[https://www.gnu.org/software/pspp/manual/html_node/SORT-CASES.html|PSPP manual for SORT CASES]] ---- CategoryRicottone