Bug 441271 - [Feature Request] Support sorting files by Chinese numbers
Summary: [Feature Request] Support sorting files by Chinese numbers
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.08.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-21 01:39 UTC by bgt
Modified: 2021-08-22 06:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Chinese number sorting (17.34 KB, image/png)
2021-08-21 13:29 UTC, Ismael Asensio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bgt 2021-08-21 01:39:02 UTC
SUMMARY
Hope Dolphin could support sorting files by Chinese numbers order when sorting by filename:一(one),二(two),三(three),...
Comment 1 Ismael Asensio 2021-08-21 13:29:34 UTC
Created attachment 140913 [details]
Chinese number sorting

That's an interesting request. Thanks!

Sorting of chinese numbers fails, first on a string level, because their unicode representations are not sorted as the numbers they represent. Instead they get sorted as 1 7 3 2 5 9 8 6 10 4 (https://shkspr.mobi/blog/2016/11/how-do-you-sort-chinese-numbers/).

For what I've checked up, for advanced sorting, dolphin relies on the Qt sorting mechanism through the class QCollator, which supports internationalization.

I think this might be an issue which is worth to fix upstream.
Comment 2 bgt 2021-08-22 06:58:22 UTC
(In reply to Ismael Asensio from comment #1)
> Created attachment 140913 [details]
> Chinese number sorting
> 
> That's an interesting request. Thanks!
> 
> Sorting of chinese numbers fails, first on a string level, because their
> unicode representations are not sorted as the numbers they represent.
> Instead they get sorted as 1 7 3 2 5 9 8 6 10 4
> (https://shkspr.mobi/blog/2016/11/how-do-you-sort-chinese-numbers/).
> 
> For what I've checked up, for advanced sorting, dolphin relies on the Qt
> sorting mechanism through the class QCollator, which supports
> internationalization.
> 
> I think this might be an issue which is worth to fix upstream.

So, will this feature be considered?
And is It feasible to convert Chinese numbers into Arabic numbers before sorting?But...there're also problems.For example Chinese numbers don't always represent Arabic numbers in meaning...