git: Fix project diff sorting not matching the git panel when tree view is in use (#46283)

The tree view effectively always sorts by status, not by path.

Release Notes:

- Fixed incorrect ordering of paths in the project diff when using the
git panel's tree view.
4831e5cba9Cole Miller committed on 1/7/2026, 8:03:27 PM· committed by GitHubparenta3733b8
1 file changedLine totals unavailable