Skip to content

Alphabetical text sorting does not work very well, especially for not-English text (but not only) #13456

@grzegorj

Description

@grzegorj

Description of the Issue

The expected behaviour of the sort function is to operate correctly not only for English. Unfortunately, it is not the case.

Steps to Reproduce the Issue

Open a new text file and write, one word in a line, ex.
laka
łąka
mąka
mika

(note EOL = the end of the line at the end of the text)
These are Polish words, and the lines have already been sorted correctly by the alphabetical order. Nevertheless, try to sort them in Notepad++.

Expected Behavior

The function “Sort” should not change anything in this text

Actual Behavior

The final EOL is transferred at the beginning of the file, and the words are not correctly sorted any longer (the correct alphabetical order is totally ignored). You receive:

laka
mika
mąka
łąka
(note the empty line at the beginning; there is no EOL after the word “łąka”)

The bug is checked in Notepad++ v. 8.5
BTW, the correct alphabetical order in Polish is aąbcćdeęfghijklłmnńoópqrsśtuvwxyzźż. Each letter is treated separately, not as a variant with a diacritic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions