Added sorting to secret list

This commit is contained in:
Paweł Karpiński 2023-08-24 09:08:46 +02:00
parent d82bb80e14
commit c98651a42d
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ struct StoreListView: View {
if store.secrets.isEmpty {
EmptyStoreView(store: store, activeSecret: $activeSecret)
} else {
ForEach(store.secrets) { secret in
ForEach(store.secrets.sorted(by: { $0.name < $1.name })) { secret in
SecretListItemView(
store: store,
secret: secret,