summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-04-14 10:57:13 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-04-14 11:00:24 +0200
commitec3f4f5bf06aa662b86079d815f9a68b556190f3 (patch)
tree4df07daa2a17a822792bf1ef3f52fa4e428eb0c9
parentf026e53c4df5b0b3bb7435c05d3c8662afe45881 (diff)
downloadgitlab-ce-fix-group-projects-sort.tar.gz
Projects on group page should be sorted by last activity instead of id/created_atfix-group-projects-sort
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/controllers/groups_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index c1adc999567..ee4fcc4e360 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -40,6 +40,7 @@ class GroupsController < Groups::ApplicationController
@last_push = current_user.recent_push if current_user
@projects = @projects.includes(:namespace)
+ @projects = @projects.sorted_by_activity
@projects = filter_projects(@projects)
@projects = @projects.sort(@sort = params[:sort])
@projects = @projects.page(params[:page]) if params[:filter_projects].blank?