Previous Up Next

2.37.19  Sort a list by increasing order : SortA

SortA takes as argument a list.
SortA returns this list sorted by increasing order.
Input :

SortA([3,4,2])

Output :

[2,3,4]

SortA may have a matrix as argument and in this case, SortA modifies the order of columns by sorting the first matrix row by increasing order.
Input :

SortA([[3,4,2],[6,4,5]])

Output :

[[2,3,4],[5,6,4]]

Previous Up Next