Merge pull request #14812 from issyl0/contributions-order-maintiainers

dev-cmd/contributions: Order the CSV by highest contributions total
This commit is contained in:
Issy Long 2023-02-25 22:20:45 +00:00 committed by GitHub
commit 66303bd092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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