From 99051479c137b04367266992514914c8b4e016db Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 19 Aug 2024 15:25:40 +0200 Subject: [PATCH] Fix Trending Tags pending review having an unstable sort order (#31473) Co-authored-by: Claire --- app/models/trends/tag_filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/trends/tag_filter.rb b/app/models/trends/tag_filter.rb index 46b747819e1..d6f88a9486e 100644 --- a/app/models/trends/tag_filter.rb +++ b/app/models/trends/tag_filter.rb @@ -14,7 +14,7 @@ class Trends::TagFilter def results scope = if params[:status] == 'pending_review' - Tag.unscoped + Tag.unscoped.order(id: :desc) else trending_scope end