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

View File

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