Skip to content

Commit

Permalink
Add back tree node sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed Jun 26, 2024
1 parent d57a978 commit 17997b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DotnetEventsViewer/Pages/EventsTree.razor
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
if (node.Children != null)
{
children = new List<ITreeViewItem>();
foreach (var child in node.Children)
foreach (var child in node.Children.Values.OrderByDescending(n => n.Count))
{
children.Add(CallTreeToView(child.Value));
children.Add(CallTreeToView(child));
}
}

Expand Down

0 comments on commit 17997b0

Please sign in to comment.