| Summary: | Natural sorting doesn't handle numbers with decimal points | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | Kishore Gopalakrishnan <kishore96> |
| Component: | view-engine: general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | minor | CC: | eduardosanchezmunoz |
| Priority: | NOR | ||
| Version First Reported In: | 19.08.1 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Screenshot showing Dolphin's wrong sorting order.
Screenshot showing the issue |
||
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. Created attachment 122533 [details]
Screenshot showing the issue
This screenshot shows the issue more clearly.
*** Bug 444344 has been marked as a duplicate of this bug. *** |
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.