diff --git a/app/models/specified_domain.rb b/app/models/specified_domain.rb index d7e2ef115ef91a..0b4aacb9af2414 100644 --- a/app/models/specified_domain.rb +++ b/app/models/specified_domain.rb @@ -21,7 +21,7 @@ class SpecifiedDomain < ApplicationRecord class << self def white_list_domain_caches - Rails.cache.fetch('specified_domains:white_list') { white_list_domains.to_a } + Rails.cache.fetch('specified_domains:white_list') { white_list_domains.order(:domain).to_a } end def save_from_hashes(rows, type, caches)