Bug 411707 - Natural sorting doesn't handle numbers with decimal points
Summary: Natural sorting doesn't handle numbers with decimal points
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (other bugs)
Version First Reported In: 19.08.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 444344 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-09-08 11:41 UTC by Kishore Gopalakrishnan
Modified: 2025-12-25 20:50 UTC (History)
1 user (show)

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


Attachments
Screenshot showing Dolphin's wrong sorting order. (15.46 KB, image/png)
2019-09-08 11:41 UTC, Kishore Gopalakrishnan
Details
Screenshot showing the issue (17.70 KB, image/png)
2019-09-08 11:48 UTC, Kishore Gopalakrishnan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2019-09-08 11:41:11 UTC
Created attachment 122532 [details]
Screenshot showing Dolphin's wrong sorting order.

SUMMARY
Natural sorting does not sort numbers with decimal points as per their numerical value.

STEPS TO REPRODUCE
1. Create files whose names have numbers with decimal points.
2. Enable natural sorting in Settings > Dolphin > General


OBSERVED RESULT
Digits after the decimal point are just compared digit-by digit for sorting purposes (Attached screenshot).

EXPECTED RESULT
Numbers with decimal points should also be sorted according to their numerical value if natural sorting is enabled. For example, the 'ls' program does this correctly.

SOFTWARE/OS VERSIONS
Linux distro: Arch Linux
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
Also happens with folders.
Comment 1 Kishore Gopalakrishnan 2019-09-08 11:47:07 UTC
Oh sorry, what I meant in the 'observed behaviour' part is that it seems to discard the leading zeroes after the decimal point and start the comparison anew. It is not comparing them digit by digit.
Comment 2 Kishore Gopalakrishnan 2019-09-08 11:48:40 UTC
Created attachment 122533 [details]
Screenshot showing the issue

This screenshot shows the issue more clearly.
Comment 3 aristsakas 2025-12-25 20:50:04 UTC
*** Bug 444344 has been marked as a duplicate of this bug. ***