connedit prev/next: sort in the db.
This commit is contained in:
parent
08a4bbb7d0
commit
7de4f1d96f
@ -48,9 +48,6 @@ class Connedit extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function xchan_name_sort($a,$b) {
|
|
||||||
return strcasecmp($a['xchan_name'],$b['xchan_name']);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @brief Evaluate posted values and set changes
|
/* @brief Evaluate posted values and set changes
|
||||||
*
|
*
|
||||||
@ -557,12 +554,11 @@ class Connedit extends \Zotlabs\Web\Controller {
|
|||||||
$contact_id = \App::$poi['abook_id'];
|
$contact_id = \App::$poi['abook_id'];
|
||||||
$contact = \App::$poi;
|
$contact = \App::$poi;
|
||||||
|
|
||||||
$cn = q("SELECT abook_id, xchan_name from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_self = 0",
|
$cn = q("SELECT abook_id, xchan_name from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_self = 0 order by xchan_name",
|
||||||
intval(local_channel())
|
intval(local_channel())
|
||||||
);
|
);
|
||||||
if($cn) {
|
|
||||||
usort($cn, '\\Zotlabs\\Module\\Connedit::xchan_name_sort');
|
|
||||||
|
|
||||||
|
if($cn) {
|
||||||
$pntotal = count($cn);
|
$pntotal = count($cn);
|
||||||
|
|
||||||
for($x = 0; $x < $pntotal; $x ++) {
|
for($x = 0; $x < $pntotal; $x ++) {
|
||||||
|
1553
util/hmessages.po
1553
util/hmessages.po
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user