DESC should be ASC - this is more logically.

This commit is contained in:
Michael 2017-05-06 12:46:31 +00:00
parent 3ca70e6362
commit 8dd8936dd0

View file

@ -1058,7 +1058,7 @@ class dba {
$param_string .= " ORDER BY ";
foreach ($params['order'] AS $fields => $order) {
if (!is_int($fields)) {
$param_string .= "`".$fields."` ".($order ? "ASC" : "DESC").", ";
$param_string .= "`".$fields."` ".($order ? "DESC" : "ASC").", ";
} else {
$param_string .= "`".$order."`, ";
}