acad_strlsort
 
 
 

Sorts a list of strings in alphabetical order

(acad_strlsort list) 

Arguments

list

The list of strings to be sorted.

Return Values

The list in alphabetical order. If the list is invalid or if there is not enough memory to do the sort, acad_strlsort returns nil.

Examples

Sort a list of abbreviated month names:

Command: (setq mos '("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug"

"Sep" "Oct" "Nov" "Dec"))

("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec")

Command: (acad_strlsort mos)

("Apr" "Aug" "Dec" "Feb" "Jan" "Jul" "Jun" "Mar" "May" "Nov" "Oct" "Sep")