Groups sorting now works with new Lib

New database settings improved
This commit is contained in:
BONNEVILLE Geoffroy
2017-11-30 18:56:56 +01:00
parent 33223934e3
commit 7530cf8006
7 changed files with 32 additions and 19 deletions

View File

@@ -201,7 +201,7 @@ namespace ModernKeePass.ViewModels
try
{
_pwGroup.SortSubGroups(false);
Groups = new ObservableCollection<GroupVm>(Groups.Skip(1).OrderBy(g => g.Name));
Groups = new ObservableCollection<GroupVm>(Groups.OrderBy(g => g.Name).ThenBy(g => g._pwGroup == null));
OnPropertyChanged("Groups");
}
catch (Exception e)