hi i'm build a report using date time, but the date time arrangement are not follow the sequence....can anyone help? Below are the source code and report outcome.
public function setup()
{
$this->src('sales')
->query("SELECT order_date,total_bill FROM dborder")
->pipe(new DateTimeFormat(array(
"order_date"=>array(
"from"=>"Y-m-d H:i:s",
"to"=>"jS M, Y",
)
)))
->pipe(new Group(array(
"by"=>"order_date",
"sum"=>"total_bill"
)))
->pipe(new Limit(array(30)))
->pipe($this->dataStore('Total_Sales_Daily'));
}