diff --git a/app/models/user.rb b/app/models/user.rb index b52487fac..60349daaf 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -41,7 +41,7 @@ class User < ActiveRecord::Base has_many :services, :dependent => :destroy has_many :user_preferences, :dependent => :destroy has_many :tag_followings, :dependent => :destroy - has_many :followed_tags, :through => :tag_followings, :source => :tag + has_many :followed_tags, :through => :tag_followings, :source => :tag, :order => 'tags.name' has_many :authorizations, :class_name => 'OAuth2::Provider::Models::ActiveRecord::Authorization', :foreign_key => :resource_owner_id has_many :applications, :through => :authorizations, :source => :client