summaryrefslogtreecommitdiff
path: root/app/controllers/explore
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-01-25 13:53:29 -0600
committerEric Eastwood <contact@ericeastwood.com>2017-01-26 12:01:06 -0600
commit6fbf24af278ecbb818471fae7108b669b51613e1 (patch)
treec4868e57016bd96355faef4d215f3bd0234e538e /app/controllers/explore
parent1fe80c296243c92fc4619ae556bc53383c059266 (diff)
downloadgitlab-ce-6fbf24af278ecbb818471fae7108b669b51613e1.tar.gz
Fix /explore sorting (trending)
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27044
Diffstat (limited to 'app/controllers/explore')
-rw-r--r--app/controllers/explore/projects_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/explore/projects_controller.rb b/app/controllers/explore/projects_controller.rb
index a62c6211372..26e17a7553e 100644
--- a/app/controllers/explore/projects_controller.rb
+++ b/app/controllers/explore/projects_controller.rb
@@ -22,6 +22,7 @@ class Explore::ProjectsController < Explore::ApplicationController
def trending
@projects = filter_projects(Project.trending)
+ @projects = @projects.sort(@sort = params[:sort])
@projects = @projects.page(params[:page])
respond_to do |format|