diff --git a/app/models/queries/filters/strategies/huge_list.rb b/app/models/queries/filters/strategies/huge_list.rb index 84ca263fa9..16e97df223 100644 --- a/app/models/queries/filters/strategies/huge_list.rb +++ b/app/models/queries/filters/strategies/huge_list.rb @@ -34,7 +34,7 @@ module Queries::Filters::Strategies to: :filter def validate - if allowed_values_subset & values != values + if (allowed_values_subset & values).sort != values.sort errors.add(:values, :inclusion) end end