Name

sort

Usage

builtin-function

Syntax

(sort seq)
(sort comparer seq)

Description

Sorts seq. The default comparer is the inbuilt function compare.

user > (sort "hello, world")
it: (#\space #\, #\d #\e #\h #\l #\l #\l #\o #\o #\r #\w)
user > (sort '("hello" "goodbye" "doei" "farewell"))
it: ("doei" "farewell" "goodbye" "hello")