6.0.0-beta1
8/7/25

[#6090] sorting address book entries
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

History
01/08/2008 11:40:03 AM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Turba 2.2 has secondary sort columns.
01/07/2008 10:18:23 PM brana (at) ualberta (dot) ca Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ sorting address book entries
Queue ⇒ Turba
Reply to this comment
hi, this is a problem we had about 6 months ago and with an upgrade to 
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.

Saved Queries