Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » sort
next | previous | forward | backward | up | index | toc

# sort -- sort a list or columns of a matrix

## See also

- rsort -- sort a list or matrix in reverse order
- sortColumns -- permutation giving sort order
- <= -- less than or equal
- ? -- comparison operator

### Menu

- sort(List) -- sort a list
- sort(Matrix) -- sort the columns of a matrix
- sortColumns -- permutation giving sort order

## Ways to use sort:

- sort(List) -- sort a list
- `sort(List,Function)` -- see sort(List) -- sort a list
- sort(Matrix) -- sort the columns of a matrix

## For the programmer

The object sort is a method function with options.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/sort-doc.m2:15:0.