next up previous contents index
suivant: Sort a list by monter: Lists and vectors précédent: Sort : sort   Table des matières   Index


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]]



giac documentation written by Renée De Graeve and Bernard Parisse