[#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 (125 days ago)
Due
Updated 01/08/2008 (124 days ago)
Assigned
Resolved 01/08/2008 (124 days ago)
Attachments
Milestone
Patch

History
01/08/2008 Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Turba 2.2 has secondary sort columns.
01/07/2008 brana (at) ualberta (dot) ca Comment #1
Queue ⇒ Turba
Summary ⇒ sorting address book entries
Type ⇒ Enhancement
Priority ⇒ 1. Low
State ⇒ New
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.