Skip to content

Commit 701ac44

Browse files
committed
order descending by default
1 parent 682f3be commit 701ac44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function join($joinTable, $joinCondition, $joinType = '')
307307
*
308308
* @return MysqliDb
309309
*/
310-
public function orderBy($orderByField, $orderbyDirection)
310+
public function orderBy($orderByField, $orderbyDirection = "DESC")
311311
{
312312
$allowedDirection = Array ("ASC", "DESC");
313313
$orderbyDirection = strtoupper (trim ($orderbyDirection));

0 commit comments

Comments
 (0)