fix: files should be displayed after folders (#597)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-10-24 17:00:03 +08:00
parent 76a7a2228f
commit 339bceef3d
No known key found for this signature in database

View file

@ -116,7 +116,7 @@ namespace SourceGit.ViewModels
{
if (l.IsFolder == r.IsFolder)
return Models.NumericSort.Compare(l.FullPath, r.FullPath);
return r.IsFolder ? -1 : 1;
return l.IsFolder ? -1 : 1;
});
}