transcad Posted April 9, 2012 Posted April 9, 2012 How can i sort a list of strings? (setq lst ( "name2" "name3" "name1")) to be ("name1" "name2" "name3") ? Quote
pBe Posted April 9, 2012 Posted April 9, 2012 (setq lst '( "name2" "name3" "name1")) (acad_strlsort) (acad_strlsort lst) ("name1" "name2" "name3") (vl-sort) (vl-sort lst '>) ("name3" "name2" "name1") (vl-sort lst '<) ("name1" "name2" "name3") 1 Quote
MSasu Posted April 9, 2012 Posted April 9, 2012 The advantage of VL-SORT function is that will allow you to define the sorting criteria. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.