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                           
                    echo $pdocrud->dbTable("orders")->render();
                        

Orders

Showing 1 to 10 of 78 entries

# ID Order no Order date Customer name Order amount Order status Actions
1 156 99 2017-10-18 sdfg 0 sdfgsdfg
2 155 123 2017-10-17 shafiq 200 0,1
3 154 24525 2017-10-12 234525 243525 243525
4 153 24525 2017-10-12 234525 243525 243525
5 152 24525 2017-10-12 234525 243525 243525
6 151 0 0000-00-00 0
7 150 1 2017-10-12 Avina 1234 2
8 149 123 2017-10-11 sadfsd 23 sdf
9 148 2 2017-10-13 dsad 0 sad
10 147 1 2017-10-06 zz 0 ss
# ID Order no Order date Customer name Order amount Order status Actions