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

# ID Order no Order date Customer name Order amount Order status Actions
1 146 45 2017-08-01 Jamie Spencer 7282 Completed
2 145 45 2017-08-01 Jamie Spencer 7282 Completed
3 144 0 2017-08-17 johhny 3939 UCODE-002
4 143 0 2017-08-17 johhny 3939 UCODE-002
5 141 0 0000-00-00 0
6 140 0 0000-00-00 0
7 139 0 0000-00-00 ;;; 0
8 138 444 2016-12-01 ppp 10 0
9 137 -1 2016-12-21 candikel 12 p
10 136 0 0000-00-00 0
# ID Order no Order date Customer name Order amount Order status Actions