Skip to content

Commit 7761b83

Browse files
committed
enhance: compare DisplayName instead of FullPath while sorting change tree node (#1793)
Signed-off-by: leo <[email protected]>
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)