mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-22 05:27:28 +00:00
Added sorting to secret list
This commit is contained in:
parent
d82bb80e14
commit
c98651a42d
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user