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

# ID Order no Order date Customer name Order amount Order status Actions
1 154 0 0000-00-00 0
2 153 0 0000-00-00 0
3 152 1 2018-04-18 Pharetra Euismod Sollicitudin 2345 ok
4 151 12312333 2018-04-05 123 123 123
5 150 44 2018-04-17 Gary Brett 1017 Signd Up
6 149 0 0000-00-00 0
7 148 66 2018-04-16 Tom 34 H
8 147 66 2018-04-16 Tom 34 H
9 146 66 2018-04-16 Tom 34 H
10 145 66 2018-04-16 Tom 34 H
# ID Order no Order date Customer name Order amount Order status Actions