Sort
Sort[ list ]
Sort[ list ] returns a copy of list sorted in (ascending) numerical order. Elements without defined numerical values are treated as if their numerical value is 0.
| Example | in | out |
|---|---|---|
A sorted copy of {x,7,-3,5}. |
Sort[ {x,7,-3,5} ] |
{ -3, x, 5, 7 } |