1)用sort函数进行排序
CL-USER> (sort "elbow" #'char<)
"below"
CL-USER> (sort '(a c b s) #'string<)
(A B C S)
CL-USER> (sort '(39 48 28 4 32) #'<)
(4 28 32 39 48)
CL-USER> (sort (vector "foo" "bar" "barz") #'string<)
#("bar" "barz" "foo")
1)用sort函数进行排序
CL-USER> (sort "elbow" #'char<)
"below"
CL-USER> (sort '(a c b s) #'string<)
(A B C S)
CL-USER> (sort '(39 48 28 4 32) #'<)
(4 28 32 39 48)
CL-USER> (sort (vector "foo" "bar" "barz") #'string<)
#("bar" "barz" "foo")
转载于:https://my.oschina.net/u/241930/blog/598638