From bb3fc1e04ed32b16a7ea5e7be11944e4eda4afaf Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Sun, 18 Nov 2012 22:36:22 +0400 Subject: [PATCH] add order to projects admin page --- app/controllers/admin/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb index 24406525cd8..d27b657de3a 100644 --- a/app/controllers/admin/projects_controller.rb +++ b/app/controllers/admin/projects_controller.rb @@ -4,7 +4,7 @@ class Admin::ProjectsController < AdminController def index @admin_projects = Project.scoped @admin_projects = @admin_projects.search(params[:name]) if params[:name].present? - @admin_projects = @admin_projects.page(params[:page]).per(20) + @admin_projects = @admin_projects.order("name ASC").page(params[:page]).per(20) end def show