Being explicit about sorting keys first

This commit is contained in:
Maxim Belkin 2018-04-07 13:33:10 -05:00
parent 71fef1493d
commit e4a1b16180

View File

@ -175,8 +175,8 @@ class LinkageChecker
return if things.empty?
puts "#{label}:"
if things.is_a? Hash
things.sort_by(&:to_s).each do |list_label, list|
list.sort.each do |item|
things.keys.sort.each do |list_label|
things[list_label].sort.each do |item|
puts " #{item} (#{list_label})"
end
end