6.0.0-beta1
10/16/25

[#5502] Sorting address book search results
Summary Sorting address book search results
Queue Turba
Queue Version HEAD
Type Bug
State Duplicate
Priority 1. Low
Owners
Requester brana (at) ualberta (dot) ca
Created 06/26/2007 (6687 days ago)
Due
Updated 06/27/2007 (6686 days ago)
Assigned 06/27/2007 (6686 days ago)
Resolved 06/27/2007 (6686 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/27/2007 07:50:40 PM Chuck Hagenbuch Comment #4
State ⇒ Duplicate
Reply to this comment
we're using a single field.
Okay. I'm pretty sure this is a duplicate of bug 3909 then.
how can we seperately identify first and last name?
Change the source definition in turba/config/sources.php.
06/27/2007 06:48:37 PM brana (at) ualberta (dot) ca Comment #3 Reply to this comment
we're using a single field. when adding a new contact to the book the 
user is only presented with one field to enter a name. how can we 
seperately identify first and last name?
06/27/2007 03:44:48 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Are you using a single name field or do you have separate 
firstname/lastname fields?
06/26/2007 07:56:45 PM brana (at) ualberta (dot) ca Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Sorting address book search results
Queue ⇒ Turba
State ⇒ Unconfirmed
Reply to this comment
Horde: 3.1.4

Imp: H3 (4.1.4)

Turba: H3 (2.1.4)



Hello.



When doing an address book search the results are sometimes not sorted 
properly. If the user has set the name_format option in the address 
book settings to be 'last_first' then a search on a last name (eg: 
'macdougall') is not ordered, but a search on a first name (eg: 
'william') is sorted.



I made a minor change to the following files which fixes the sorting 
problem, but I'm not sure if this is the best solution:



horde/turba/search.php

horde/turba/lib/api.php



# diff search.php.bak search.php

68c68

<                     ? (($prefs->getValue('name_format') == 'first_last')

---
                   ? ($prefs->getValue('name_format')
# diff api.php.bak api.php

894c894

<             ? (($prefs->getValue('name_format') == 'first_last')

---
           ? ($prefs->getValue('name_format')
--

Babita Rana

Saved Queries