You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For performance reasons most DBM systems, SQLite included, use binary comparison to sort results. Apostrophes (and almost all punctuation) are less than any upper- or lower- case character. I can think of at least three ways to get around this:
Change the database's collation setting to something that supports linguistic comparison.
Explicitly specify a linguistic collation in the order by clause.
Omit the order by and use LINQ to order the results.
Option 3 is probably the simplest and it has the advantage that, if done properly, it will order the results according to rules of the calling user's locale.
There's an issue using ORDER BY when the column value contains an apostrophe. For example i'm saving song titles in my database.
For example i have three entrys with the following values:
When using ORDER BY title ASC, the correct order should be:
But the given order is:
I think that's a General Problem in SQL because with SQLite for C++ there's tue same issue. Or is there any workaround?
The text was updated successfully, but these errors were encountered: