Permalink
Browse files

preserve order of column selection in query instead of alphabetizing

  • Loading branch information...
1 parent 809edc2 commit b69c232e71bf8bd071c19458d41e270c0f564d9c @mwlang committed Dec 29, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 VERSION
  2. +2 −1 lib/extensions/export.rb
View
@@ -1 +1 @@
-0.4.0
+0.4.1
@@ -63,7 +63,8 @@ def output
return unless first_row
quot = @options[:quote_char]
- @columns ||= first_row.keys.sort_by{|x|x.to_s}
+ @columns = @dataset.columns
+ # @columns = first_row.keys
if @options[:headers] == true
@file.puts @columns.map{|col| "#{quot}#{col}#{quot}"}.join(@options[:delimiter])

0 comments on commit b69c232

Please sign in to comment.