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

# ID Order no Order date Customer name Order amount Order status Actions
1 139 0 0000-00-00 ;;; 0
2 138 444 2016-12-01 ppp 10 0
3 137 -1 2016-12-21 candikel 12 p
4 136 0 0000-00-00 0
5 135 1 2016-12-15 qsd 0 0
6 134 20 2016-12-07 ason 200 ok
7 133 0 0000-00-00 candikel 300
8 132 -1 2016-12-18 gggg 12 p
9 131 2222 2016-12-08 sdfsdfc 0 yxcyxc
10 130 0 0000-00-00 0
# ID Order no Order date Customer name Order amount Order status Actions