mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-22 11:35:21 +01:00
sort sites and folders
This commit is contained in:
parent
a732e8953b
commit
ae37c634ef
@ -51,7 +51,7 @@ namespace Bit.App.Pages
|
||||
private async Task LoadFoldersAsync()
|
||||
{
|
||||
var folders = await _folderService.GetAllAsync();
|
||||
var pageFolders = folders.Select(f => new SettingsFolderPageModel(f));
|
||||
var pageFolders = folders.Select(f => new SettingsFolderPageModel(f)).OrderBy(f => f.Name);
|
||||
Folders.ResetWithRange(pageFolders);
|
||||
}
|
||||
|
||||
|
@ -201,8 +201,8 @@ namespace Bit.App.Pages
|
||||
var folders = await foldersTask;
|
||||
var sites = await sitesTask;
|
||||
|
||||
Folders = folders.Select(f => new VaultListPageModel.Folder(f));
|
||||
Sites = sites.Select(s => new VaultListPageModel.Site(s));
|
||||
Folders = folders.Select(f => new VaultListPageModel.Folder(f)).OrderBy(s => s.Name);
|
||||
Sites = sites.Select(s => new VaultListPageModel.Site(s)).OrderBy(s => s.Name).ThenBy(s => s.Username);
|
||||
|
||||
FilterResults(Search.Text);
|
||||
});
|
||||
|
@ -100,6 +100,7 @@ namespace Bit.iOS.Extension
|
||||
var siteModels = sites.Select(s => new SiteViewModel(s));
|
||||
_tableItems = siteModels
|
||||
.Where(s => s.Domain != null && s.Domain.BaseDomain == _context.DomainName.BaseDomain)
|
||||
.OrderBy(s => s.Name).ThenBy(s => s.Username)
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user