diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-30 20:13:35 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-30 20:13:35 +0400 |
commit | 2ecc79507a4a9556f6f609c7289b7b0942ccc6bb (patch) | |
tree | 08e52d2656da5e6a06542e422346bb5fcce7be85 /app/controllers/projects/labels_controller.rb | |
parent | 91c1534e59c0492546c46724f9d401c40e1c9133 (diff) |
Order labels by name
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/projects/labels_controller.rb')
-rw-r--r-- | app/controllers/projects/labels_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb index 14194b3963c..d049012f6d8 100644 --- a/app/controllers/projects/labels_controller.rb +++ b/app/controllers/projects/labels_controller.rb @@ -7,7 +7,7 @@ class Projects::LabelsController < Projects::ApplicationController respond_to :js, :html def index - @labels = @project.labels.order('title ASC').page(params[:page]).per(20) + @labels = @project.labels.order_by_name.page(params[:page]).per(20) end def new |