Sha256: 763124bc148a9012197986db6e3663af49839051d45603236f4d5a4144bdbaac

Contents?: true

Size: 311 Bytes

Versions: 8

Compression:

Stored size: 311 Bytes

Contents

csv =<<-CSV
Author,Best Book,Number of Pages,Style
Samuel Beckett,Malone Muert,120,Modernism
James Joyce,Ulysses,644,Modernism
Nicholson Baker,Mezannine,150,Minimalism
Vladimir Sorokin,The Queue,263,Satire
CSV

spreadsheet = TableFu.new(csv) do |s|
  s.sorted_by = {'Best Book' => {'order' => 'ascending'}}
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
table_fu-0.3.4 examples/sort_by_column.rb
table_fu-0.3.3 examples/sort_by_column.rb
table_fu-0.3.2 examples/sort_by_column.rb
table_fu-0.3.1 examples/sort_by_column.rb
table_fu-0.3.0 examples/sort_by_column.rb
table_fu-0.2.1 examples/sort_by_column.rb
table_fu-0.2.0 examples/sort_by_column.rb
table_fu-0.1.1 examples/sort_by_column.rb