diff options
-rw-r--r-- | app/models/label.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index aed74d0bde1..9760f1aefa9 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -33,11 +33,11 @@ class Label < ActiveRecord::Base scope :templates, -> { where(template: true) } def self.prioritized - where.not(priority: nil).reorder(Gitlab::Database.nulls_last_order(:priority), :title) + where.not(priority: nil).reorder(:title) end def self.unprioritized - where(priority: nil).reorder(Gitlab::Database.nulls_last_order(:priority), :title) + where(priority: nil).reorder(:title) end alias_attribute :name, :title |