Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » sort » sortColumns » sortColumns(...,DegreeOrder=>...)
next | previous | forward | backward | up | index | toc

# sortColumns(...,DegreeOrder=>...) -- specify Ascending, Descending, or null

- Usage:
    `sortColumns(...,DegreeOrder=>x)`
- Inputs:
  - x, a symbol, either Ascending, Descending, or null
- Consequences:
  - If x is not null, first order the columns of the matrix in ascending or descending degree (depending on x). If x is null, then only use the monomial order in the sort

## Caveat

This option only works for sorting columns of a matrix, not the elements of a list

## Functions with optional argument named DegreeOrder:

- rsort(...,DegreeOrder=>...) -- specify Ascending, Descending, or null
- sort(...,DegreeOrder=>...) -- specify Ascending, Descending, or null
- sortColumns(...,DegreeOrder=>...) -- specify Ascending, Descending, or null

## Further information

- Default value: null
- Function: sortColumns -- permutation giving sort order
- Option key: DegreeOrder -- an optional argument

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