1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-28 12:35:40 +01:00

alphabetize org list in vault filter (#1945)

This commit is contained in:
mp-bw 2022-06-08 17:20:23 -04:00 committed by GitHub
parent fba407f3b6
commit dd6003bd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ namespace Bit.App.Pages
var options = new List<string> { AppResources.AllVaults, AppResources.MyVault }; var options = new List<string> { AppResources.AllVaults, AppResources.MyVault };
if (_organizations.Any()) 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, var selection = await Page.DisplayActionSheet(AppResources.FilterByVault, AppResources.Cancel, null,
options.ToArray()); options.ToArray());

View File

@ -399,7 +399,7 @@ namespace Bit.App.Pages
var options = new List<string> { AppResources.AllVaults, AppResources.MyVault }; var options = new List<string> { AppResources.AllVaults, AppResources.MyVault };
if (_organizations.Any()) 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, var selection = await Page.DisplayActionSheet(AppResources.FilterByVault, AppResources.Cancel, null,
options.ToArray()); options.ToArray());