https://bugs.kde.org/show_bug.cgi?id=416025
Bug ID: 416025 Summary: Sorting by name takes the dot of file extension into account when sorting files Product: dolphin Version: unspecified Platform: Neon Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: dolphin-bugs-n...@kde.org Reporter: sephiroth...@hotmail.it CC: kfm-de...@kde.org Target Milestone: --- Created attachment 124982 --> https://bugs.kde.org/attachment.cgi?id=124982&action=edit File sorting example SUMMARY The current implementation of natural sorting takes the dot of the file extension into account, and this makes it so that files with numbers in their name are shown before those with the same name but without numbers. It seems like the dot of the extension is treated as part of the file name; while it is indeed part of the file name in UNIX-like OSes due to magic numbers, from a user perspective this is unintuitive as we humans treat the file name and the extension as two separate things, with the dot acting as the separator. STEPS TO REPRODUCE 1. create three files: "file.txt", "file 2.txt", "file 3.txt"; 2. use sorting by name. OBSERVED RESULT The files are shown in the following order: "file 2.txt", "file 3.txt", "file.txt". EXPECTED RESULT The files should be sorted in what we might call a "natural" way: files with a space and a number following their name should come after those without space and number in their file name. This behaviour is seen in all other desktop environments (e.g. GNOME) and operating systems (e.g. Windows). SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE neon KDE Plasma Version: 5.17.4 KDE Frameworks Version: 5.65.0 Qt Version: 5.13.2 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.