summaryrefslogtreecommitdiff
path: root/program/steps/addressbook
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-02-11 11:38:46 +0000
committerthomascube <thomas@roundcube.net>2012-02-11 11:38:46 +0000
commitba36dd03f6f7005a6e35ec02e4ff9a58f95be1c3 (patch)
tree002d0183144bb7adcf757144c035f0f8d0eba649 /program/steps/addressbook
parent5ea6e16036aa18c57c709dc88e4255120b63e965 (diff)
Backported r5850 to 0.7 branch
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r--program/steps/addressbook/list.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/addressbook/list.inc b/program/steps/addressbook/list.inc
index b4b7306a6..71196b4bb 100644
--- a/program/steps/addressbook/list.inc
+++ b/program/steps/addressbook/list.inc
@@ -31,6 +31,7 @@ if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search
$page = isset($_SESSION['page']) ? $_SESSION['page'] : 1;
$_SESSION['page'] = $page;
+ $sort_col = $this->config->get('addressbook_sort_col', 'name');
// Get records from all sources
foreach ($search as $s => $set) {
@@ -46,7 +47,7 @@ if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search
while ($row = $result->next()) {
$row['sourceid'] = $s;
- $key = $row['name'] . ':' . $row['sourceid'];
+ $key = $row[$sort_col] . ':' . $row['sourceid'];
$records[$key] = $row;
}
unset($result);