Menu

#552 Addressbook: allow sorting by lastname

open
nobody
None
5
2009-06-17
2009-06-17
No

(using squirrelmail-1.4.17-1.2 package from openSUSE 11.1)

If I sort the addressbook by name, it is sorted by the displayed name, which means sort by firstname. To make the story short: that's quite unusable ;-)

I made a quick and dirty patch to solve the issue for me, but it requires to manually set abook_sort_order=8 in the .pref file:

--- functions/addressbook.php_ORIG 2009-06-18 00:12:59.000000000 +0200
+++ functions/addressbook.php 2009-06-18 00:13:19.000000000 +0200
@@ -197,9 +197,11 @@
case 7:
$abook_sort='label';
break;
+ case 8:
+ $abook_sort='lastname';
+ break;
case 2:
case 3:
- case 8:
default:
$abook_sort='name';
}

It would be very good if I could choose this sort order directly in squirrelmail ;-)
Possible options are IMHO:
- split the name column to two columns (firstname and lastname) - this might be the best solution
- add more sort buttons to the name column (full name, firstname, lastname)
- add a config option to display the name as "lastname, firstname" - this would solve the sorting as a side effect

BTW: This feature was already implemented in 2005, but it looks like it was lost again. See https://sourceforge.net/tracker/index.php?func=detail&aid=1164435&group_id=311&atid=300311 and https://sourceforge.net/tracker/index.php?func=detail&aid=1313707&group_id=311&atid=350311 (maybe you can reuse one of the old patches...)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.