summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/search.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-03-05 19:59:07 +0000
committeralecpl <alec@alec.pl>2012-03-05 19:59:07 +0000
commit053538bf60e354a64664fb9a992cbbda37d70f76 (patch)
tree764ebf819debced16b472f754bbf04a54c5b3b06 /program/steps/addressbook/search.inc
parentb1a8dabb1fcea27e19d71dda138191dea3dc529f (diff)
- Merge r5966 from trunk (#1488375)
Diffstat (limited to 'program/steps/addressbook/search.inc')
-rw-r--r--program/steps/addressbook/search.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/addressbook/search.inc b/program/steps/addressbook/search.inc
index 172286171..9415de4ee 100644
--- a/program/steps/addressbook/search.inc
+++ b/program/steps/addressbook/search.inc
@@ -144,6 +144,7 @@ function rcmail_contact_search()
$sources = $RCMAIL->get_address_sources();
$search_set = array();
$records = array();
+ $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name');
foreach ($sources as $s) {
$source = $RCMAIL->get_address_book($s['id']);
@@ -182,7 +183,7 @@ function rcmail_contact_search()
while ($row = $result->next()) {
$row['sourceid'] = $s['id'];
- $key = $row['name'] . ':' . $row['sourceid'];
+ $key = rcmail_contact_key($row, $sort_col);
$records[$key] = $row;
}