Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd Sort and SQL ORDER BY Behavior (Part 2)
Message
 
To
04/08/2000 19:22:46
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00401450
Message ID:
00401457
Views:
21
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.



>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
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform