dev-cmd/contributions: Order the CSV by highest contributions total
This commit is contained in:
parent
428193aa29
commit
7b8f1c8714
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user