lib/danger/plugins/roulette.rb in gitlab-dangerfiles-2.1.2 vs lib/danger/plugins/roulette.rb in gitlab-dangerfiles-2.1.3

- old
+ new

@@ -32,10 +32,10 @@ # @param categories [Array<Symbol>] An array of categories symbols. # @param timezone_experiment [Boolean] Whether to select reviewers based in timezone or not. # # @return [Array<Spin>] def spin(project, categories = [nil], timezone_experiment: false) - spins = categories.sort.map do |category| + spins = categories.sort_by(&:to_s).map do |category| including_timezone = INCLUDE_TIMEZONE_FOR_CATEGORY.fetch(category, timezone_experiment) spin_for_category(project, category, timezone_experiment: including_timezone) end