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

The sort order of Chinese series name #2882

Open
newyorker123 opened this issue Apr 17, 2024 · 4 comments
Open

The sort order of Chinese series name #2882

newyorker123 opened this issue Apr 17, 2024 · 4 comments
Labels
help wanted Extra attention is needed needs-triage Needs to be triaged by a developer and assigned a release

Comments

@newyorker123
Copy link

What happened?

Most of my manga series names are in Chinese. When they are sorted by 'Sort Name' (the default), the order is just weird. They don't look sorted at all.

Chinese characters should be sorted by Pinyin. On the Windows file system, they behave correctly. Additionally, Emby also sorts Chinese titles correctly. I believe there must be something wrong with how Kavita implements the sort.

What did you expect?

Chinese series name sorted by pinyin.

Kavita Version Number - If you don not see your version number listed, please update Kavita and see if your issue still persists.

0.8.0 - Stable

What operating system is Kavita being hosted from?

Docker (Dockerhub Container)

If the issue is being seen on Desktop, what OS are you running where you see the issue?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

If the issue is being seen on Mobile, what OS are you running where you see the issue?

None

If the issue is being seen on the Mobile UI, what browsers are you seeing the problem on?

No response

Relevant log output

No response

Additional Notes

No response

@newyorker123 newyorker123 added the needs-triage Needs to be triaged by a developer and assigned a release label Apr 17, 2024
@majora2007 majora2007 added the help wanted Extra attention is needed label Apr 17, 2024
@majora2007
Copy link
Member

Please give some examples of filenames and how they SHOULD sort vs how they DO sort.

I'm not sure I can support, but with extra info I can take a look.

@newyorker123
Copy link
Author

Thank you for your reply. I'll give 6 examples and the corresponding Pinyin.

name               Pinyin
冰菓               bing guo
链锯人             lian ju ren
迷宫饭             mi gong fan
神明大人搞错了     shen ming da ren gao cuo le
我家的英雄         wo jia de ying xiong
终将成为你         zhong jiang cheng wei ni

Pinyin uses the alphabet. You can treat Pinyin as English words and sort them according to alphabetical order. Since the first letter of each Pinyin is distinct, the order is determined by the first letter (i.e. b -> l -> m -> s -> w -> z). Therefore, the above list is already in the correct order, which is consistent with Windows file system.
image

The order in Kavita is :
image

I guess it's because the default sort method uses unicode code point.

@majora2007
Copy link
Member

Are you using the Chinese locale at all?

@newyorker123
Copy link
Author

No, I use English locale.

But I just tried changing the locale to Chinese and recreate the library. The order is still the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs-triage Needs to be triaged by a developer and assigned a release
Projects
None yet
Development

No branches or pull requests

2 participants