]> git.mxchange.org Git - friendica.git/commitdiff
Order result of api/statues/friends by nickname
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 24 Oct 2017 19:29:43 +0000 (21:29 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 24 Oct 2017 19:29:43 +0000 (21:29 +0200)
include/api.php

index bd579bf19adc3a1dacc0d5f3d9159a5caf0aab18..d1ec25eabe279764762f1b51a24b9d3160e9dd93 100644 (file)
@@ -2880,7 +2880,7 @@ $called_api = null;
                        $sql_extra = " AND false ";
                }
 
-               $r = q("SELECT `nurl` FROM `contact` WHERE `uid` = %d AND NOT `self` AND (NOT `blocked` OR `pending`) $sql_extra",
+               $r = q("SELECT `nurl` FROM `contact` WHERE `uid` = %d AND NOT `self` AND (NOT `blocked` OR `pending`) $sql_extra ORDER BY `nick`",
                        intval(api_user())
                );