dev-cmd/contributions: Order the CSV by highest contributions total

This commit is contained in:
Issy Long 2023-02-25 18:04:01 +00:00
parent 428193aa29
commit 7b8f1c8714
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -110,7 +110,7 @@ module Homebrew
CSV.generate do |csv| CSV.generate do |csv|
csv << %w[user repo commits coauthorships signoffs total] 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) csv << grand_total_row(user, total)
end end
end end