Support

As evidenced by over 30 years of development history, trust-worthy Korean CAD, CADian!

Registration Date
2010.09.23
Author
cadnorma
Sorting a list
I have such a list I""d like to put it in decreasing order, based on the first element of each sub-list. In AutoCAD, I use the following conde: (setq full_list (vl-sort full_list (function (lambda (e1 e2) (< (nth 0 e1) (nth 0 2)))))) The "function" is not recognized by Cadian. I""ve tried to substitute it with the "apply" function, but I don""t know the rigth sintax. How can I do the same in Cadian? Can you help me, please? The full_list variable is the following: (("cnqt0203000" ".85") ("cnqt0006020" ".18") ("cnqt0006020" ".41") ("cnqt0006020" ".15") ("cnqt0006020" ".08") ("cnqt0006020" ".18"))

Added to cart.

VIEW CART

Please sign in first.

JOIN