Skip to content

Commit

Permalink
Update src/spec/dsl.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Müller <[email protected]>
  • Loading branch information
baseballlover723 and straight-shoota authored Dec 13, 2023
1 parent 3c8858a commit ebffcea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec/dsl.cr
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ module Spec
private def self.print_list_tags(tag_counts : Hash(String, Int32)) : Nil
return if tag_counts.empty?
longest_name_size = tag_counts.keys.max_of(&.size)
tag_counts.to_a.sort_by! { |k, v| -v }.each do |tag_name, count|
tag_counts.to_a.sort_by! { |k, v| {-v, k} }.each do |tag_name, count|
puts "#{tag_name.rjust(longest_name_size)}: #{count}"
end
end
Expand Down

0 comments on commit ebffcea

Please sign in to comment.