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 ?

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: question about "vl-sort"
« Reply #1 on: August 14, 2008, 10:48:46 AM »
Check these threads / posts for ideas ... link, link, link ...
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://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.