Bug 476307

Summary: Document list view not sorting in Path/URL order properly
Product: [Applications] kate Reporter: Robert Scott <bugs>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Displayed document order

Description Robert Scott 2023-10-29 23:18:59 UTC
Created attachment 162708 [details]
Displayed document order

SUMMARY

With the "Document Path" sort order selected, files in a directory tree are shown in an apparently random order.

STEPS TO REPRODUCE
1. Open files in a directory tree in a random order from the filesystem view
2. Observe their order in the Document view (in "Tree Mode")

OBSERVED RESULT

See attached screenshot. This is not an ordering I recognize.

EXPECTED RESULT

nixpkgs-devel
> nixos
> pkgs
> > applications
> > build-support
> > development
> > servers
> > shells
> default.nix

SOFTWARE/OS VERSIONS

Standard Debian Bookworm
KDE Frameworks 5.103.0
Kate 22.12.3
Qt 5.15.8

ADDITIONAL INFORMATION

Related to #435334 ?
Comment 1 Bug Janitor Service 2024-04-01 20:25:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1441
Comment 2 Waqar Ahmed 2024-04-01 20:36:52 UTC
Git commit f27b8bd5d0ba692d3839fd8116c274453d63ae59 by Waqar Ahmed.
Committed on 01/04/2024 at 20:24.
Pushed by cullmann into branch 'master'.

Documents: Fix sorting for directories

They were not getting sorted at all if the sort mode was Document Path

M  +3    -6    addons/filetree/katefiletreeproxymodel.cpp

https://invent.kde.org/utilities/kate/-/commit/f27b8bd5d0ba692d3839fd8116c274453d63ae59