mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
feature: use numeric sorting for all trees (#597)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
12bb915bd8
commit
76a7a2228f
4 changed files with 78 additions and 6 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue