Member of the basic class.
c = sort(a)
[c, d] = sort(a)
Sorts the input elements in ascending order.
| Name | Description |
| a | Specifies a vector or matrix. |
| Name | Description |
| c | Returns the elements of a in ascending order. LabVIEW sorts complex vectors by magnitude and angle, in that order. If a is a matrix, c returns the columns of a in ascending order. c is a vector or matrix of the same size as a. |
| d | Returns the indexes in a of the elements in c. d is an integer vector or matrix of the same size as a. |
A = [-1+2i, 3, -1-2i, -4]
[C, D] = sort(A)