-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Sorting by name not working with "É" #5542
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
In
The Using I’m working on a PR to address this. |
Replace <=> with Collator for better accented character handling Using <=> with strtolower() can misorder accented characters (e.g., "é" after "z"), making it less reliable for some languages. Collator from intl ensures precise, locale-aware string comparisons.
Thanks to the work done by @bernardo-campos in #5550 this has now been improved, with the applied changes due to be part of the next patch release. Thanks @serinf-lauza for raising. |
Describe the Bug
Hi! I created a sorting rule that only has Name - Alphabetical (Asc) in it. When I apply it to a book, the letter "É" gets sort out at the end of everything. It should be between "D" and "F", the previous method for sorting by name still works and put it as it's rightful place (Sort by name). My BookStack is in French, so we use a lot of "É" in our titles!
Thank you! :)
Steps to Reproduce
Expected Behaviour
It should be between "D" and "F" when sorted by name.
Screenshots or Additional Context
No response
Browser Details
Chrome
Exact BookStack Version
v25.02.1
The text was updated successfully, but these errors were encountered: