Lex sort

From WeBWorK_wiki
Revision as of 17:49, 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

lex_sort

Description

Returns a list sorted in lexigraphic (alphabetical) order.

Syntax

lex_sort(@list)

Params

@list is the list to be sorted.

Returns

Returns list sorted alphabetically (lexigraphically).

Examples

join(" ", lex_sort('a','b',2,5,10) ); returns "10 2 5 a b"