Skip to content

Commit

Permalink
Merge pull request #4 from ctrueden/fix-word-order
Browse files Browse the repository at this point in the history
Fix word ordering in CSV (and HTML) output
  • Loading branch information
chrishunt committed Sep 6, 2013
2 parents 2e6d3ce + 1dcb0b9 commit 47f3d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git_pissed/formats/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def formatted
end

def table
[["date", *options.words].join(',')].tap do |table|
[["date", *words_by_date[0][1].keys].join(',')].tap do |table|
words_by_date.each do |date, words|
table << [date, *words.values].join(',')
end
Expand Down

0 comments on commit 47f3d29

Please sign in to comment.