mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-15 13:57:24 +01:00
Added sorting to secret list
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user