Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting column on alpha-numeric data
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01581848
Message ID:
01581985
Vues:
55
J'aime (1)
I call this a smart sort in my app for the very same scenario you describe

STR(VAL(CHRTRAN(enf,"eE-+","")))+LEFT(enf,1)+STR(VAL(SUBSTR(enf,2)))+enf

This will give you

1
2
3
10
A1
A2
A10
B1
B2
B10
etc.
Brandon Harker
Sebae Data Solutions
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform