sort

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
sort

Sort the the rows or the columns of the vector x. This is a subcommand of the EVAL command.

Usage: 1}, x, [col=0])
3}, x, [row=0])
Parameters:
dir The direction to sort in (0=sort the rows in ascending order, 1=sort the rows in descending order, 2=sort the columns in ascending order, 3=sort the columns in descending order).
x The vector to sort.
col The column to use for sorting.
row The row to use for sorting.


| |- |Return Type: |no result |}

Navigation menu

Personal tools