Incorrect sorting order by name for Chinese characters

Questions, glitches, bugs and crashes
Locked
xell
Posts: 1
Joined: Wed Apr 19, 2023 2:12 am

Incorrect sorting order by name for Chinese characters

Post by xell » Wed Apr 19, 2023 3:12 am

I made an image for demonstration:

nimble-commander-sorting-pinyin-bug-small.png
nimble-commander-sorting-pinyin-bug-small.png (339.67 KiB) Viewed 24334 times

The details, with extra information for people who are not familiar with Chinese language:

macOS offers several order rules for sorting Chinese characters, as showing in the left side of the image, among which the Pinyin sort order is the most popular because it's in generally consistent with the pronunciation AND the English alphabet order. I intentionally uses three files to demonstrate it, and the second part of the filename (fei, shan, yi) is the Pinyin for the Chinese Character. In the correct examples of ForkLift and Path Finders, the order by name of the first Chinese character is consistent with the English letters in Pinyin, that is, the order of f-s-y in descending order.

In other words, as a developer, you don't need to learn Chinese to determine the right sorting order. If the order of the English letter is right, then the order of the Chinese character is right too. So here's the filenames for your testing.

Code: Select all

飞 fei.txt
山 shan.txt
艺 yi.txt
So apparently the order in Nimble Commander is incorrect. Frankly speaking, I don't know what the order it used is... But since ForkLift and Path Finder can give correct result, I think perhaps there's a built-in method in macOS API to let you just follow it straightforward.

Thank you in advance for considering this bug.

Locked