lib/sidekiq/web/helpers.rb in sidekiq-6.5.6 vs lib/sidekiq/web/helpers.rb in sidekiq-6.5.7

- old
+ new

@@ -153,10 +153,10 @@ # '2.1.1.1' < '192.168.0.2' < '192.168.0.10' def sorted_processes @sorted_processes ||= begin return processes unless processes.all? { |p| p["hostname"] } - split_characters = /[._-]/ + split_characters = /[._-]+/ padding = processes.flat_map { |p| p["hostname"].split(split_characters) }.map(&:size).max processes.to_a.sort_by do |process| process["hostname"].split(split_characters).map do |substring|