lib/intuition/report.rb in intuition-0.0.1.alpha1 vs lib/intuition/report.rb in intuition-0.0.1.alpha2
- old
+ new
@@ -41,9 +41,13 @@
def add_sheet(sheet)
@sheets << sheet
end
+ def sort_sheets!
+ @sheets.sort_by!{|s| s.title }
+ end
+
def method_missing(m, *args, &block)
if context && context.respond_to?(m)
context.send(m, *args, &block)
else
super