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 154 0 0000-00-00 0
2 153 93063 2016-09-08 Coo 32 qsdCompleted
3 152 1212 2018-10-09 2341324 234 0,1
4 151 121212 2018-10-03 Momo 1256 Vendu
5 150 123124134 2018-10-05 ASDAS 0 asdasd
6 149 5789999 2016-09-30 teste 943 Completed
7 148 0 0000-00-00 asdf 11
8 147 123 2018-10-01 123 1 0,1
9 146 51 2018-10-16 teste 9431 Completed
10 145 2147483647 2018-10-16 jjk 13 Completed
# ID Order no Order date Customer name Order amount Order status Actions