summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/labels_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/labels_controller.rb b/app/controllers/labels_controller.rb
index f52fc2d8180..e703f822982 100644
--- a/app/controllers/labels_controller.rb
+++ b/app/controllers/labels_controller.rb
@@ -14,7 +14,7 @@ class LabelsController < ApplicationController
respond_to :js, :html
def index
- @labels = Issue.tag_counts_on(:labels)
+ @labels = @project.issues.tag_counts_on(:labels).order('count DESC')
end
protected