From 40cfa537306c8a7d92f3cd9c1fb9cbea6fc4c17d Mon Sep 17 00:00:00 2001 From: Thomas Clark Date: Wed, 2 Oct 2024 08:34:39 +0100 Subject: [PATCH] refactor: order configuration settings by key (#97) --- .../Components/Pages/ConfigurationExplorer.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AzureAppConfigurationEmulator/Components/Pages/ConfigurationExplorer.razor b/src/AzureAppConfigurationEmulator/Components/Pages/ConfigurationExplorer.razor index 25a60e2..bfb1b9e 100644 --- a/src/AzureAppConfigurationEmulator/Components/Pages/ConfigurationExplorer.razor +++ b/src/AzureAppConfigurationEmulator/Components/Pages/ConfigurationExplorer.razor @@ -49,7 +49,7 @@ @code { private List ConfigurationSettings { get; } = []; - private List FilteredConfigurationSettings => ConfigurationSettings.Where(setting => string.IsNullOrEmpty(SearchQuery) || setting.Key.Contains(SearchQuery) || setting.Label?.Contains(SearchQuery) == true || setting.Value?.Contains(SearchQuery) == true).ToList(); + private List FilteredConfigurationSettings => ConfigurationSettings.Where(setting => string.IsNullOrEmpty(SearchQuery) || setting.Key.Contains(SearchQuery) || setting.Label?.Contains(SearchQuery) == true || setting.Value?.Contains(SearchQuery) == true).OrderBy(setting => setting.Key).ToList(); private bool IsValuesHidden { get; set; } = true;