Reputation: 7708
I have the following table:
CREATE TABLE IF NOT EXISTS TEST_TABLE ( testID INTEGER PRIMARY KEY AUTOINCREMENT, testName TEXT);
Some of the test data
My Query
SELECT * FROM TEST_TABLE ORDER BY testName
Response:
Expected:
Can someone explain why this is the response?
Upvotes: 0
Views: 894
Reputation: 2460
That's because ORDER BY is case sensitive and a 'a' is greater than a 'Z'. There is a solution to be case insensitive : [Your request] ORDER BY testName COLLATE NOCASE
Hope this could explain your problem.
Edit : dom explain it before :-)
Upvotes: 4