PDA

View Full Version : Sort list of numbers



avinash00002002
2006-03-27, 09:31 AM
I have a nos of parameters in list mode like (1 10 11 12 112.1 112.2 113 115 15 16 17 18 19 20 23 45 2 23 32 4 120 140 )

I want to sort it by alphabetical wise like....


(1 2 4 10 11 12 15 16 17 18 19 20 23 32 45 112.1 112.2 113 115 120 140)

and

(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ........ 10000000)

I am using (vl-sort a '<) function in autoLISP

Can anybody give me a real command


pixlepark96@sancharnet.in

Opie
2006-03-27, 02:19 PM
Are you looking for code in VBA? The code snippet you provided is for Visual Lisp. Let me know which you prefer.

Richard
Forum Moderator

avinash00002002
2006-03-27, 04:10 PM
Thanx for Care,


I need VBA code.

I have a urgent work. Pls. do needfull as early as possible


pixlepark96@sancharnet.in

Opie
2006-03-27, 05:21 PM
Thanx for Care,


I need VBA code.

I have a urgent work. Pls. do needfull as early as possible


pixlepark96@sancharnet.in
I feel that the sorting routine that Ed Jobe provided in this thread could be modified, if needed, to do what you are looking for.