num_sort

From WeBWorK_wiki
Revision as of 19:44, 18 November 2009 by Aubreyja (talk | contribs) (from ur manpages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


num_sort

Description

Sorts a list into numerical order

Syntax

num_sort(@list)

Params

@list is the list to be sorted.

Returns

Returns list sorted numerically.

Examples

join(" ",num_sort(23,11,2,5,10)); returns "2 5 10 11 23"