diff options
| author | Fuwn <[email protected]> | 2025-02-28 03:59:35 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-28 03:59:35 -0800 |
| commit | 1783dcb17d2b0f7d9742dfcaed0ef119f6e6f605 (patch) | |
| tree | f94bcd8e8b32cb4f86d520b319571375254afd9a | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-1783dcb17d2b0f7d9742dfcaed0ef119f6e6f605.tar.xz sora-testing-1783dcb17d2b0f7d9742dfcaed0ef119f6e6f605.zip | |
feat: Development commit
| -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 |