Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need idea for sort
Message
From
26/02/2010 09:11:21
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
26/02/2010 08:36:05
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01451160
Message ID:
01451222
Views:
39
Hi Craig

No ::(

1.1
1.10
1.2
1.2.R
10.1

goes to (lets say len=5)

001.1
01.10
001.2
1.2.R
010.1

sorts to

1.1
1.2
1.10
10.1
1.2.R

should be

1.1
1.2
1.2.R
1.10
10.1

Thank you anyway
Agnes

>Off the top of my head, without testing
>
>SELECT PADL(ALLTRIM(field), LEN(field), "0") AS SortOrd, field
> FROM table
> ORDER BY SortOrd
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform