<commit_before>module TurkishSupport
  refine Array do
    def sort
      sort_by do |item|
          item.chars.map { |ch| ORDERED_CHARS.index(ch) }
      end
    end
  end
end
<commit_msg>Fix Array#sort bug<commit_after>module TurkishSupport
  refine Array do
    def sort
      sort_by do |item|
        if item.is_a?(String)
          item.chars.map { |ch| ORDERED_CHARS.index(ch) }
        else
          super
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.07236842105263158, 'fraction_numerical': 0.0, 'mean_word_length': 1.9483870967741936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5879511', 'n_tokens_mistral': 155, 'n_tokens_neox': 151, 'n_words': 41}