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();
                        

Deprecated: Required parameter $field follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $task follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $totalrecords follows optional parameter $page in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudHelper.php on line 191

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