<commit_before>module ActiveRecord
  module Acts #:nodoc:
    module Tagger #:nodoc:
      def self.included(base)
        base.extend(ClassMethods)
      end
      
      module ClassMethods
        def acts_as_tagger(options = {})
          has_many :taggings
          has_many :tags, :through => :taggings, :select => "DISTINCT #{Tag.table_name}.*", :order => "name"
          
          extend ActiveRecord::Acts::Tagger::SingletonMethods
          include ActiveRecord::Acts::Tagger::InstanceMethods
        end
      end
      
      module SingletonMethods
      end
      
      module InstanceMethods
      end
    end
  end
end<commit_msg>made acts_as_tagger order tags the same way acts_as_taggable does<commit_after>module ActiveRecord
  module Acts #:nodoc:
    module Tagger #:nodoc:
      def self.included(base)
        base.extend(ClassMethods)
      end
      
      module ClassMethods
        def acts_as_tagger(options = {})
          has_many :taggings
          has_many :tags, :through => :taggings, :select => "DISTINCT #{Tag.table_name}.*", :order => "lOWER(name) asc"
          
          extend ActiveRecord::Acts::Tagger::SingletonMethods
          include ActiveRecord::Acts::Tagger::InstanceMethods
        end
      end
      
      module SingletonMethods
      end
      
      module InstanceMethods
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.0, 'mean_word_length': 2.2322274881516586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '620492', 'n_tokens_mistral': 400, 'n_tokens_neox': 396, 'n_words': 92}