From 8634d0d5c1a8c7c1dc0aa735bb7bd450ca6c9b86 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 6 Mar 2014 18:31:08 +0200 Subject: [PATCH] Sort projects by activity at group show page Signed-off-by: Dmitriy Zaporozhets --- app/controllers/groups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index ebddf36de97..a3019b3ac78 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -100,7 +100,7 @@ class GroupsController < ApplicationController end def projects - @projects ||= ProjectsFinder.new.execute(current_user, group: group) + @projects ||= ProjectsFinder.new.execute(current_user, group: group).sorted_by_activity.non_archived end def project_ids