Created attachment 175189 [details] provide the patch to fix this issue SUMMARY nartual sorting by meaning, sort numeric number nartually. but this setting have zero effect. STEPS TO REPRODUCE 1. enable nartual sorting in settings. 2. open folder that have files with it's name contains numeric number. 3. and toggle header to sort by file name. OBSERVED RESULT the files are still sorted by ascii code. e.g. 1.txt 10.txt 11.txt ... 2.txt 20.txt EXPECTED RESULT the files should be sorted by numeric number, if it has numeric number in its name. e.g. 1.txt 2.txt 3.txt 4.txt 5.txt 6.txt 7.txt 8.txt 9.txt 10.txt 11.txt SOFTWARE/OS VERSIONS Operating System: Gentoo Linux 2.15 KDE Plasma Version: 6.2.2 KDE Frameworks Version: 6.7.0 Qt Version: 6.8.0 Kernel Version: 6.11.5-Gentoo (64-bit) Graphics Platform: Wayland Processors: 32 × AMD Ryzen 9 3950X 16-Core Processor Memory: 125.7 GiB of RAM Graphics Processor: AMD Radeon RX 5700 XT ADDITIONAL INFORMATION
The patch is incorrect. (m_collator.setNumericMode(true) is called already. patch was apparently untested. The issue is the apply button does not cause the view to reload the settings, but the setting is saved. Restarting dolphin changes the sorting. The bug origin seems to be due to having two GeneralSettings::self() value despite using a singleton. It seems to be due to how code is organized and dolphinprivate/dolphinstatic build target somehow split the
https://stackoverflow.com/questions/11962918/local-static-variable-is-instantiated-multiple-times-why