From 7b8f1c871408dc853856fb67c732f5f5b09d2714 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 25 Feb 2023 18:04:01 +0000 Subject: [PATCH] dev-cmd/contributions: Order the CSV by highest contributions total --- Library/Homebrew/dev-cmd/contributions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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