Skip to main content

Sort

Sort[list] sorts the elements of list into canonical order. 

Sort[list,p] sorts using the ordering function p.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.