From dd6003bd4fa4b0c589f06007f0f96d2d3bccc65e Mon Sep 17 00:00:00 2001 From: mp-bw <59324545+mp-bw@users.noreply.github.com> Date: Wed, 8 Jun 2022 17:20:23 -0400 Subject: [PATCH] alphabetize org list in vault filter (#1945) --- src/App/Pages/Vault/CiphersPageViewModel.cs | 2 +- src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/Vault/CiphersPageViewModel.cs b/src/App/Pages/Vault/CiphersPageViewModel.cs index acf67c6b9..bc318de2e 100644 --- a/src/App/Pages/Vault/CiphersPageViewModel.cs +++ b/src/App/Pages/Vault/CiphersPageViewModel.cs @@ -242,7 +242,7 @@ namespace Bit.App.Pages var options = new List { AppResources.AllVaults, AppResources.MyVault }; if (_organizations.Any()) { - options.AddRange(_organizations.Select(o => o.Name)); + options.AddRange(_organizations.OrderBy(o => o.Name).Select(o => o.Name)); } var selection = await Page.DisplayActionSheet(AppResources.FilterByVault, AppResources.Cancel, null, options.ToArray()); diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs index 20e45d1ac..ac3200aca 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs @@ -399,7 +399,7 @@ namespace Bit.App.Pages var options = new List { AppResources.AllVaults, AppResources.MyVault }; if (_organizations.Any()) { - options.AddRange(_organizations.Select(o => o.Name)); + options.AddRange(_organizations.OrderBy(o => o.Name).Select(o => o.Name)); } var selection = await Page.DisplayActionSheet(AppResources.FilterByVault, AppResources.Cancel, null, options.ToArray());