[imp] Why turba insists in using lastname as the sortorder key

Eduardo Pinto eep@poingg.com
Sun, 23 Jun 2002 22:25:03 +0100


There should be a configuration variable for the default sort criteria on
turba.
Unfortunately, there doesn't seem to be one.

So... For those using horde+imp+turba, try this if you want your contacts
sorted by name, rather than lastname

=======================
turba/lib/Source.php, line 179
=======================
change:
function search($search_criteria, $sort_criteria = 'lastname', $match =
null)
to:
function search($search_criteria, $sort_criteria = 'name', $match = null)

=======================
turba/lib/List.php
=======================
change:
function sort($sort = 'lastname', $low = null, $high = null)
to:
function sort($sort = 'name', $low = null, $high = null)

=======================
turba/lib/api.php
=======================
change:
$res = $driver->search($criteria, 'lastname', TURBA_SEARCH_OR);
to:
$res = $driver->search($criteria, 'name', TURBA_SEARCH_OR);

--
Eduardo
eep@poingg.com