From 17997b036338d2798b4f466fb127f1dcf2ddd70e Mon Sep 17 00:00:00 2001 From: verdie-g Date: Tue, 25 Jun 2024 20:55:07 -0400 Subject: [PATCH] Add back tree node sorting --- DotnetEventsViewer/Pages/EventsTree.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DotnetEventsViewer/Pages/EventsTree.razor b/DotnetEventsViewer/Pages/EventsTree.razor index aa855f5..622177c 100644 --- a/DotnetEventsViewer/Pages/EventsTree.razor +++ b/DotnetEventsViewer/Pages/EventsTree.razor @@ -37,9 +37,9 @@ if (node.Children != null) { children = new List(); - 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)); } }