transcad Posted April 9, 2012 Share Posted April 9, 2012 How can i sort a list of strings? (setq lst ( "name2" "name3" "name1")) to be ("name1" "name2" "name3") ? Quote Link to comment Share on other sites More sharing options...
pBe Posted April 9, 2012 Share 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 Link to comment Share on other sites More sharing options...
MSasu Posted April 9, 2012 Share Posted April 9, 2012 The advantage of VL-SORT function is that will allow you to define the sorting criteria. Quote Link to comment Share on other sites More sharing options...
VVA Posted April 9, 2012 Share Posted April 9, 2012 Search of Windows type Sort function Quote Link to comment Share on other sites More sharing options...
transcad Posted April 10, 2012 Author Share Posted April 10, 2012 ok, perfect, thanks! Quote Link to comment Share on other sites More sharing options...
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.