mstb Posted March 15, 2020 Share Posted March 15, 2020 hello every one I have a list like this ((5 x) (2 y) (4 Z) ........ And I want this ((2 y) (4 z) (5 x) ....... thanks Quote Link to comment Share on other sites More sharing options...
Jonathan Handojo Posted March 15, 2020 Share Posted March 15, 2020 (edited) (vl-sort lst '(lambda (x y) (< (car x) (car y)))) Edited March 15, 2020 by Jonathan Handojo 1 Quote Link to comment Share on other sites More sharing options...
mstb Posted March 15, 2020 Author Share Posted March 15, 2020 thank you very much 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.