Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Sort

Usage

Sort[list] sorts the elements of list into canonical order.
Sort[list, p] sorts using the ordering function p.


Notes

• Example: Sort[ b, c, a ]LongRightArrow .
• The canonical ordering used by Mathematica is described in Section A.3.9.
Sort[list, p] applies the function p to pairs of elements in list to determine whether they are in order. The default function p is OrderedQ[{#1, #2}]&.
• Example: Sort[ 4, 1, 3 , Greater]LongRightArrow .
Sort can be used on expressions with any head, not only List.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: