Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-19 09:23:24 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-19 09:23:24 +0300
commit3c2139ed172c607467ec6cf412d7ed33147bac22 (patch)
tree01be548ca319cff6f2125398b6ca886f101362b2 /app/finders
parent231797707772275aed229db5613865d8081bdd3f (diff)
Fix trending projects ordering
Diffstat (limited to 'app/finders')
-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