Difference between revisions of "Lex sort"

From WeBWorK_wiki
Jump to navigation Jump to search
(from ur manpages)
 
m (LexSort moved to Lex sort: consistent naming)
 
(No difference)

Latest revision as of 21:17, 18 November 2009

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"