PDOCrud Order by ascending and descending

You can get the data order by ascending and descending by using dbOrderBy function.

  
                    $pdocrud = new PDOCrud();
                    $pdocrud->dbOrderBy("id desc");//descending    
                    //$pdocrud->dbOrderBy(array("id desc","order_no desc"));//pass in array                                 
                    echo $pdocrud->dbTable("orders")->render();
                        

Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/saasycod/public_html/script/classes/PDOCrud.php:447 Stack trace: #0 /home/saasycod/public_html/script/classes/PDOCrud.php(447): implode() #1 /home/saasycod/public_html/demo/pages/order-by.php(38): PDOCrud->dbOrderBy() #2 {main} thrown in /home/saasycod/public_html/script/classes/PDOCrud.php on line 447