diff options
Diffstat (limited to 'Sora')
| -rw-r--r-- | Sora/Views/BookmarksView.swift | 2 | ||||
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridSearchHistoryView.swift | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Sora/Views/BookmarksView.swift b/Sora/Views/BookmarksView.swift index a84038d..26a3135 100644 --- a/Sora/Views/BookmarksView.swift +++ b/Sora/Views/BookmarksView.swift @@ -33,7 +33,7 @@ struct BookmarksView: View { } ForEach( - filteredBookmarks, + filteredBookmarks.sorted { $0.date > $1.date }, id: \.self ) { bookmark in Button(action: { diff --git a/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift b/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift index e17ca3b..e306839 100644 --- a/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift +++ b/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift @@ -36,7 +36,10 @@ struct PostGridSearchHistoryView: View { Text("No matching history found") } - ForEach(filteredHistory, id: \.id) { query in + ForEach( + filteredHistory.sorted { $0.date > $1.date }, + id: \.id + ) { query in Button(action: { let previousProvider = settings.preferredBooru |