Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd Sort and SQL ORDER BY Behavior (Part 2)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00401450
Message ID:
00401796
Views:
23
>This looks like it's sorting perfectly for me. You did misspell "Nurse" in the 3rd record, but once I fixed that, the order looks fine.
>

Same for me.

>

>>Here's the minimum code to reproduce the error I am seeing. I have tried this on 2 machines, in VFP and FPW, with different COLLATE settings, and many other ways. I'm just really curious if this is out of order for other people the way it is for me.
>>
>>
>>CREATE CURSOR Dummy (MyField C(60))
>>
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Nurse Practitioner])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Nurse Practitioner])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Nures Practitioner - PBMTU])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Nurse Practitioner])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Program Coordinator])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ([CLINICAL ASSOCIATE - Dir of Women's/Children's Health])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Nurse Practitioner])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Nurse Practitioner])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Nurse Practitioner - PBMTU])
>>INSERT INTO Dummy (MyField) ;
>>    VALUES ;
>>    ([CLINICAL ASSOCIATE - Physician's Associate])
>>
>>INDEX ON MyField TAG MyField
>>BROWSE
>>
>>SELECT MyField FROM Dummy ORDER BY MyField
>>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform