Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting Arrays
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00476674
Message ID:
00476720
Views:
35
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform