-
Notifications
You must be signed in to change notification settings - Fork 4.4k
🐛 Bug Report: Sorting doesn't work for other alphabets than english #6327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I wanna work on this one. |
@melsonic This is happening because we are using utf8mb4_general_ci |
MariaDB 10.7 does not support accent insensitivity only from 10.10 |
uca1400 is definitely 10.7+, however
|
Looks like collation needs to be added to the database layer - https://github.com/utopia-php/database/blob/4199fe8f00f4e181c7782c4a6862845d591c1f03/src/Database/Adapter/MariaDB.php#L87 |
Uh oh!
There was an error while loading. Please reload this page.
Probable solution is be able to set the locale of the underlying db or table maybe?
👟 Reproduction steps
Noticble with ÅÄÖ åäö in Finnish (and Swedish)
Add a collection with an attribute
name
Add two documents
Query the collection and sort by
name
withascending
order👍 Expected behavior
Asbjörn
Åsa
👎 Actual Behavior
Åsa
Asbjörn
🎲 Appwrite version
Version 1.4.x
💻 Operating system
Linux
🧱 Your Environment
1.4.2
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: