]> git.mxchange.org Git - friendica.git/commitdiff
DESC should be ASC - this is more logically.
authorMichael <heluecht@pirati.ca>
Sat, 6 May 2017 12:46:31 +0000 (12:46 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 6 May 2017 12:46:31 +0000 (12:46 +0000)
include/dba.php

index bdfe88510fb5497fef5617a2cce4be2a26d49f89..0072660929cea8db9d23b9b17032d1dc283e71b3 100644 (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."`, ";
                                }