Skip to content

Commit

Permalink
Re-added sorting of totp entries shown in the tray (#168)
Browse files Browse the repository at this point in the history
This fixes #167
  • Loading branch information
dannoe committed May 17, 2020
1 parent 890e8a3 commit b4d865e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion KeeTrayTOTP/Menu/TrayMenuItemProvider.cs
Expand Up @@ -169,7 +169,9 @@ protected IEnumerable<ToolStripMenuItem> CreateDatabaseSubMenuItemsFromPwDocumen
var validPwEntries = Plugin.GetVisibleAndValidPasswordEntries(pwDocument.Database).ToArray();
if (validPwEntries.Length > 0)
{
return validPwEntries.Select(entry => CreateMenuItemFromPwEntry(entry, pwDocument.Database));
return validPwEntries
.Select(entry => CreateMenuItemFromPwEntry(entry, pwDocument.Database))
.OrderBy(t => t.Text);
}

return NoTOTPEntriesFoundMenuItem(pwDocument);
Expand Down

0 comments on commit b4d865e

Please sign in to comment.