summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-18 22:23:24 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-18 22:23:24 -0800
commit3c2139ed172c607467ec6cf412d7ed33147bac22 (patch)
tree01be548ca319cff6f2125398b6ca886f101362b2 /app
parent231797707772275aed229db5613865d8081bdd3f (diff)
downloadgitlab-ce-3c2139ed172c607467ec6cf412d7ed33147bac22.tar.gz
Fix trending projects ordering
Diffstat (limited to 'app')
-rw-r--r--app/finders/trending_projects_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/trending_projects_finder.rb b/app/finders/trending_projects_finder.rb
index 32d7968924a..a79bd47d986 100644
--- a/app/finders/trending_projects_finder.rb
+++ b/app/finders/trending_projects_finder.rb
@@ -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