6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5502] Sorting address book search results
*
Your Email Address
*
Spam protection
Enter the letters below:
._..__. ..__..__ | | | |[__][__) _|_|__|\__|| |[__)
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
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers