diff options
Diffstat (limited to 'Sora/Views/Post')
| -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 |