diff --git a/Library/Homebrew/dev-cmd/contributions.rb b/Library/Homebrew/dev-cmd/contributions.rb index 868e10f43b..f20b0dd3f4 100755 --- a/Library/Homebrew/dev-cmd/contributions.rb +++ b/Library/Homebrew/dev-cmd/contributions.rb @@ -110,7 +110,7 @@ module Homebrew CSV.generate do |csv| csv << %w[user repo commits coauthorships signoffs total] - totals.each do |user, total| + totals.sort_by { |_, v| -v.values.sum }.each do |user, total| csv << grand_total_row(user, total) end end