From 0c1e0e48d420600cad47d6fd89c11581af26e75d Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Thu, 10 Apr 2025 22:12:47 +0200 Subject: [PATCH] always sort the search results alphabetically --- Source/Editor/Windows/ToolboxWindow.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Editor/Windows/ToolboxWindow.cs b/Source/Editor/Windows/ToolboxWindow.cs index 020aa53b1..160084dd2 100644 --- a/Source/Editor/Windows/ToolboxWindow.cs +++ b/Source/Editor/Windows/ToolboxWindow.cs @@ -455,10 +455,10 @@ namespace FlaxEditor.Windows var item = CreateControlItem(Utilities.Utils.GetPropertyNameUI(controlType.Name), controlType); SearchFilterHighlights(item, text, ranges); } - } + } - if (string.IsNullOrEmpty(filterText)) - _groupSearch.SortChildren(); + // Sort the search results alphabetically + _groupSearch.SortChildren(); _groupSearch.UnlockChildrenRecursive(); PerformLayout();