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 76 entries

# ID Order no Order date Customer name Order amount Order status Actions
1 148 34 2018-08-10 dsfs 3434 rr
2 147 22222 2016-09-08 Gillian Kirk 461 Completed
3 146 1234321 2018-08-02 Napoleon Alberto 1234 1
4 145 3 2018-08-02 sd 0 1212
5 144 1 2018-08-09 aaa 0 aaa
6 143 3 2018-08-20 ghg 0 on
7 142 0 0000-00-00 0
8 141 0 0000-00-00 0
9 140 0 0000-00-00 0
10 139 0 0000-00-00 ;;; 0
# ID Order no Order date Customer name Order amount Order status Actions