Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7761b83

Browse files
enhance: compare DisplayName instead of FullPath while sorting change tree node (#1793)
Signed-off-by: leo <longshuang@msn.cn>
1 parent d7fdac5 commit 7761b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/ViewModels/ChangeTreeNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private static void SortAndSetDepth(List<ChangeTreeNode> nodes, int depth)
154154
nodes.Sort((l, r) =>
155155
{
156156
if (l.IsFolder == r.IsFolder)
157-
return Models.NumericSort.Compare(l.FullPath, r.FullPath);
157+
return Models.NumericSort.Compare(l.DisplayName, r.DisplayName);
158158
return l.IsFolder ? -1 : 1;
159159
});
160160
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /