acad_strlsort

(acad_strlsort list)

This function sorts a list of string-items alphabetically, ascending.

Argument

list is the list of strings to be sorted.

Return Value

The return value is the list in alphabetical order. If at least one element of the list is not a string, nil is returned.

Example

: (acad_strlsort '("hello" "abc" "xyz" "Hello" "123"))

("123" "abc" "Hello" "hello" "xyz")

Related Functions

stringsort