Summary | sorting address book entries |
Queue | Turba |
Queue Version | 2.1.5 |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | brana (at) ualberta (dot) ca |
Created | 01/07/2008 (6422 days ago) |
Due | |
Updated | 01/08/2008 (6421 days ago) |
Assigned | |
Resolved | 01/08/2008 (6421 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ sorting address book entries
Queue ⇒ Turba
2.1.5 the problem remains.
when a user has selected a name format of "lastname, firstname" in the
address book settings, a search of the address book or a simple
listing of the entries sorts the results according to last name as
expected, but there appears to be no secondary sort on the first name.
so we get results as follows:
Blow, Apple
Blow, Joe
Blow, Christine
can this be fixed to get results like:
Blow, Apple
Blow, Christine
Blow, Joe
note: we made some local customizations to files
horde/turba/search.php and horde/turba/lib/api.php which werent
removed before upgrading to 2.1.5. i'm not sure if these mods may have
interfered with the upgrade, but the code in both files right now is
as follows:
------
$sortcolumn = ($prefs->getValue('sortby') == 0 ||
!isset($sort_columns[$prefs->getValue('sortby') - 1]))
? (($prefs->getValue('name_format') == 'first_last')
? 'name'
: 'lastname')
: $sort_columns[$prefs->getValue('sortby') - 1];
------
thanks.