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 /Sora/Views/Post/Grid/PostGridSearchHistoryView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-1783dcb17d2b0f7d9742dfcaed0ef119f6e6f605.tar.xz sora-testing-1783dcb17d2b0f7d9742dfcaed0ef119f6e6f605.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridSearchHistoryView.swift')
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridSearchHistoryView.swift | 5 |
1 files changed, 4 insertions, 1 deletions
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 |