sorts a vector in increasing or decreasing order
w = sort(v,order)
vector
">" or "<"
vector
sort(v)
or sort(v,">")
returns the sorted vector of numbers v
in
increasing order or the vector of character strings
v
in alphabetical order.
sort(v,"<")
returns the
sorted vector of numbers v
in decreasing order or the vector
of character strings v
in reverse alphabetical order.