mirror of
https://github.com/friendica/friendica
synced 2024-11-20 13:03:41 +00:00
DESC should be ASC - this is more logically.
This commit is contained in:
parent
3ca70e6362
commit
8dd8936dd0
1 changed files with 1 additions and 1 deletions
|
@ -1058,7 +1058,7 @@ class dba {
|
||||||
$param_string .= " ORDER BY ";
|
$param_string .= " ORDER BY ";
|
||||||
foreach ($params['order'] AS $fields => $order) {
|
foreach ($params['order'] AS $fields => $order) {
|
||||||
if (!is_int($fields)) {
|
if (!is_int($fields)) {
|
||||||
$param_string .= "`".$fields."` ".($order ? "ASC" : "DESC").", ";
|
$param_string .= "`".$fields."` ".($order ? "DESC" : "ASC").", ";
|
||||||
} else {
|
} else {
|
||||||
$param_string .= "`".$order."`, ";
|
$param_string .= "`".$order."`, ";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue