KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Bug in grouping of table #1323

Open infis opened this topic on on Feb 27, 2020 - 1 comments

infis commented on Feb 27, 2020

In example https://www.koolreport.com/examples/reports/koolphp_table/row_group/ we can see random months in year group.

In my project I commented 311 line in koolreport/core/src/widgets/koolphp/Table.php. I sort rows before in my query.

Also I translate month names in pipe(new Customfunction($row){...})

KoolReport commented on Feb 28, 2020

Hi infis,

Thank you for letting us know. Actually it is not a bug, that line of code is important. It let the grouping fields sort in asc order.

We have fixed the example with additional lines:

...
        "sorting"=>array(
            "paymentDate"=>"asc"
        ),
...

Please check the example now.

Best regards,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
solved

None