<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>sorting address book entries</title>
  <pubDate>Sat, 19 Jul 2008 06:44:02 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6090</link>
  <atom:link rel="self" type="application/rss+xml" title="sorting address book entries" href="http://bugs.horde.org/ticket/6090/rss" />
  <description>sorting address book entries</description>

  
  
  <item>
   <title>hi, this is a problem we had about 6 months ago and with an </title>
   <description>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 &quot;lastname, firstname&quot; 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-&gt;getValue('sortby') == 0 || !isset($sort_columns[$prefs-&gt;getValue('sortby') - 1])) 
   ? (($prefs-&gt;getValue('name_format') == 'first_last')
      ? 'name'
      : 'lastname') 
   : $sort_columns[$prefs-&gt;getValue('sortby') - 1];
------

thanks.</description>
   <pubDate>Mon, 07 Jan 2008 17:18:23 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6090#t40889</link>
  </item>
  <item>
   <title>Turba 2.2 has secondary sort columns.</title>
   <description>Turba 2.2 has secondary sort columns.</description>
   <pubDate>Tue, 08 Jan 2008 06:40:03 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6090#t40920</link>
  </item>
  

 </channel>
</rss>
