Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
question about "vl-sort"
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: question about "vl-sort" (Read 1783 times)
0 Members and 1 Guest are viewing this topic.
litss
Guest
question about "vl-sort"
«
on:
August 14, 2008, 09:55:25 AM »
I got a lst
("AB1" "AB2" "AB3" "AB12" "AB13" "AB4" "AB11" )
when I use "vl-sort" to rearange the list, like (vl-sort lst ">")
why would I got this result
("AB1" "AB11" "AB12" "AB13" "AB2" "AB3" "AB4")
but what i want is
("AB1" "AB2" "AB3" "AB4" "AB11" "AB12" "AB13" )
what should i do ?
Logged
MP
Seagull
Posts: 17750
Have thousands of dwgs to process? Contact me.
WWW
Re: question about "vl-sort"
«
Reply #1 on:
August 14, 2008, 10:48:46 AM »
Check these threads / posts for ideas ...
link
,
link
,
link
...
Logged
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com
•
http://cadanalyst.slack.com
•
http://linkedin.com/in/cadanalyst
litss
Guest
Re: question about "vl-sort"
«
Reply #2 on:
August 15, 2008, 09:24:52 AM »
MP, THX!
My way is to take out all the numerical string to form a list of pure number, which could be correctly vl-sorted. And then do the reverse.
thx for the links where I got the idea.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
question about "vl-sort"