From c98651a42d4a833925b3a42d89c1e8aa06984f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Karpin=CC=81ski?= Date: Thu, 24 Aug 2023 09:08:46 +0200 Subject: [PATCH] Added sorting to secret list --- Sources/Secretive/Views/StoreListView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Secretive/Views/StoreListView.swift b/Sources/Secretive/Views/StoreListView.swift index c2b64e2..e9c28fa 100644 --- a/Sources/Secretive/Views/StoreListView.swift +++ b/Sources/Secretive/Views/StoreListView.swift @@ -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,