Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
You do this:
->pipe(TimeBucket::process(array(
"date"=>array(
"formatString"=>"N"
)
)))
->pipe(Sort::process(array(
"date"=>"asc"
)))
->pipe(Custom::process(function($row){
$map = ["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];
$row["date"] = $map[$row["date"]];
return $row;
}))
Normally we do not convert to day name/month name in process phases, we keep it as number so that we can sort and do conversion at the end in Widget (using formatValue properties of Table). It is rather hard to force the Sort process to sort those strings as it varies from language to language. and also Sort may confuse developer if his intention is to sort by alphabeta.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo