mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 14:46:05 +10:00
Fix trending projects ordering
This commit is contained in:
@@ -8,7 +8,7 @@ class TrendingProjectsFinder
|
||||
# for period of time - ex. month
|
||||
projects.joins(:notes).where('notes.created_at > ?', start_date).
|
||||
select("projects.*, count(notes.id) as ncount").
|
||||
group("projects.id").order("ncount DESC")
|
||||
group("projects.id").reorder("ncount DESC")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user