Skip to content
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

Line sorting bug with diacritics #8481

Open
abdekker opened this issue Jun 26, 2020 · 1 comment
Open

Line sorting bug with diacritics #8481

abdekker opened this issue Jun 26, 2020 · 1 comment

Comments

@abdekker
Copy link

Description of the Issue

Line sorting is not ordering related letters correctly when there are diacritics (such as "e", "è" and "ë")

Steps to Reproduce the Issue

See the related community post:
https://community.notepad-plus-plus.org/topic/19613/does-sort-lines-lexographically-have-a-bug-with-diacritics

Here's a list:
naval
neither
nèither
never
nëver
nothing

Select all, then Edit > Line Operations > Sort Lines Lexographically Ascending. The list is changed to:
naval
neither
never
nothing
nèither
nëver

This is not correct because users of languages using diacritics would expect the order of letters to be:
…deèéêëf…

rather than:
…def…èéêë…

Expected Behavior

List is already sorted, so not change

Actual Behavior

List was changed to:
naval
neither
never
nothing
nèither
nëver

Debug Information

Notepad++ v7.8.6 (64-bit)
Build time : Apr 21 2020 - 15:23:03
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 1903
OS Build : 18362.900
Plugins : CustomizeToolbar.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dll

@sasumner sasumner self-assigned this Jul 9, 2020
@sasumner
Copy link
Contributor

sasumner commented Jul 9, 2020

Perhaps (simply!) what is needed here is to have a lexicographic sort that is locale-aware...

@sasumner sasumner removed their assignment Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants