public void SortEntries(string groupId) { var pwGroup = _pwDatabase.RootGroup.FindGroup(BuildIdFromString(groupId), true); var comparer = new PwEntryComparer(PwDefs.TitleField, true, false); pwGroup.Entries.Sort(comparer); }
private static void SortGroupEntriesRecursive(PwGroup pg, string strFieldName) { PwEntryComparer cmp = new PwEntryComparer(strFieldName, true, true); pg.Entries.Sort(cmp); foreach (PwGroup pgSub in pg.Groups) { SortGroupEntriesRecursive(pgSub, strFieldName); } }
private void SortGroupEntriesRecursive(PwGroup pg, string strFieldName) { PwEntryComparer cmp = new PwEntryComparer(strFieldName, true, true); pg.Entries.Sort(cmp); foreach(PwGroup pgSub in pg.Groups) { SortGroupEntriesRecursive(pgSub, strFieldName); } }