Emmanuel Delay Posted September 11, 2018 Share Posted September 11, 2018 I want to sort a list. I'm not interested in getting back a list of the sorted values, I want a list of the indexes. For example: (getSortedIndexes (list "b" "a" "e" "f" "c") ) should return (list 1 0 4 2 3) I feel like I asked this question before, but I can't find it Quote Link to comment Share on other sites More sharing options...
Grrr Posted September 11, 2018 Share Posted September 11, 2018 Hi, look into the vl-sort-i function. 1 Quote Link to comment Share on other sites More sharing options...
Emmanuel Delay Posted September 11, 2018 Author Share Posted September 11, 2018 Oh yes, thanks. (vl-sort-i (list "b" "a" "e" "f" "c") '<) returns (list 1 0 4 2 3) . 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.