Fix Trending Tags pending review having an unstable sort order (#31473)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>pull/2817/head
parent
71f257d529
commit
99051479c1
|
@ -14,7 +14,7 @@ class Trends::TagFilter
|
||||||
|
|
||||||
def results
|
def results
|
||||||
scope = if params[:status] == 'pending_review'
|
scope = if params[:status] == 'pending_review'
|
||||||
Tag.unscoped
|
Tag.unscoped.order(id: :desc)
|
||||||
else
|
else
|
||||||
trending_scope
|
trending_scope
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue