How do you order or sort fields in a row group?
<?php
Table::create(array(
"dataSource"=>$this->dataStore('payments'),
"grouping"=>array(
"year"=>array(
"calculate"=>array(
"{sumAmount}"=>array("sum","amount")
),
"top"=>"<b>Year {year}</b>",
"bottom"=>"<td><b>Total of year {year}</b></td><td><b>{sumAmount}</b></td>"
),
),
"showFooter"=>true,
"columns"=>array(
"month"=>array(
"label"=>"Month",
"footerText"=>"<b>Grand Totals</b>"
),
"amount"=>array(
"label"=>"Sale Amount",
"prefix"=>"$",
"footer"=>"sum",
"footerText"=>"<b>@value</b>"
)
),
"cssClass"=>array(
"table"=>"table-bordered",
"tf"=>"darker"
)
));
?>