Skip to content

Commit 00b9003

Browse files
committed
Fix #6: Language output is sorted alphabetically
Fix: * Unsorted languages in console output
1 parent 7ad0619 commit 00b9003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git_statistics/formatters/console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def display!
5656

5757
def print_language_data(data)
5858
# Print information of each language for the data
59-
data[:languages].each do |language, commit_data|
59+
data[:languages].sort.each do |language, commit_data|
6060
print_row("", commit_data, language)
6161
end
6262
output

0 commit comments

Comments
 (0)