Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-30 20:13:35 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-30 20:13:35 +0400
commit2ecc79507a4a9556f6f609c7289b7b0942ccc6bb (patch)
tree08e52d2656da5e6a06542e422346bb5fcce7be85 /app/controllers/projects/labels_controller.rb
parent91c1534e59c0492546c46724f9d401c40e1c9133 (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.rb2
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