Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting Arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00476674
Message ID:
00476720
Vues:
34
>We have some items in an array:
>
>Example:
>
>C, a, B, d, z
>
>When we asort() it we get
>C, B, a, d, z
>
>We would like to get:
>a, B, C, d, z
>
>
>Note: We cannot (do not want to) change the items to upper case
>
>Any suggestions ?
>
>Thanks for you time in advance!

Neeraj,

Daniel's suggestion will work. I overlooked the possibility of changing the collation sequence. Be sure, however, to save the current sequence prior to doing the sort and then restore it afterwards. While it is scoped to the current data session, it still can produce some unexpected results if it isn't restored.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform