feature: use numeric sorting for all trees (#597)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-10-24 15:11:10 +08:00
parent 12bb915bd8
commit 76a7a2228f
No known key found for this signature in database
4 changed files with 78 additions and 6 deletions

View file

@ -284,7 +284,7 @@ namespace SourceGit.Views
node.Children.Sort((l, r) =>
{
if (l.IsFolder == r.IsFolder)
return string.Compare(l.Name, r.Name, StringComparison.Ordinal);
return Models.NumericSort.Compare(l.Name, r.Name);
return l.IsFolder ? -1 : 1;
});