https://bugs.kde.org/show_bug.cgi?id=375831
Bug ID: 375831 Summary: Sorting by file extension should put empty extensions first Product: krusader Version: Git Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: m...@fork.pl Reporter: ppk...@palant.de Target Milestone: --- I'm using Krusader built from Git master (2.5.1-beta, revision 5056272) on Ubuntu 16.04. When files are sorted by file extension, files with empty file extension are placed last - this is unexpected and doesn't seem to be the intended behavior. Steps to reproduce: 1. Create files with names "foo" and "bar.txt" in the same directory. 2. Click Ext column header to sort by file extension in ascending order. Expected results: The file "foo" is listed before "bar.txt" because "" is smaller than "txt". Actual results: The file "foo" is listed after "bar.txt", function compareTexts() in krsort.cpp treats empty strings as larger than non-empty strings. This is independent of sort method chosen, and also inconsistent given that "foo.tx" is correctly listed before "bar.txt" (shorter is generally smaller). -- You are receiving this mail because: You are watching all bug changes.