aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-09 19:30:14 -0800
committerFriendika <info@friendika.com>2011-11-09 19:30:14 -0800
commit15f2ce5459153336dfb53abcdbb557bf9f2e51c0 (patch)
tree0724fddcc5dab4c9f377cec64e558a96198b0196 /include/socgraph.php
parent722e8e3d4911107d6952d3fbc7ab9dd031949044 (diff)
downloadvolse-hubzilla-15f2ce5459153336dfb53abcdbb557bf9f2e51c0.tar.gz
volse-hubzilla-15f2ce5459153336dfb53abcdbb557bf9f2e51c0.tar.bz2
volse-hubzilla-15f2ce5459153336dfb53abcdbb557bf9f2e51c0.zip
contact edit updates
Diffstat (limited to 'include/socgraph.php')
-rw-r--r--include/socgraph.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index 7f3ad7322..87a7543de 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -150,7 +150,8 @@ function common_friends($uid,$cid) {
$r = q("SELECT `gcontact`.*
FROM `glink` left join `gcontact` on `glink`.`gcid` = `gcontact`.`id`
where `glink`.`cid` = %d and `glink`.`uid` = %d
- and `gcontact`.`nurl` in (select nurl from contact where uid = %d and self = 0 and id != %d ) ",
+ and `gcontact`.`nurl` in (select nurl from contact where uid = %d and self = 0 and id != %d )
+ order by `gcontact`.`name` asc ",
intval($cid),
intval($uid),
intval($uid),
@@ -181,7 +182,8 @@ function all_friends($uid,$cid,$start = 0, $limit = 80) {
$r = q("SELECT `gcontact`.*
FROM `glink` left join `gcontact` on `glink`.`gcid` = `gcontact`.`id`
- where `glink`.`cid` = %d and `glink`.`uid` = %d LIMIT %d, %d ",
+ where `glink`.`cid` = %d and `glink`.`uid` = %d
+ order by `gcontact`.`name` asc LIMIT %d, %d ",
intval($cid),
intval($uid),
intval($start),