sorting of addressbook_search fixed, thanks to the patch of Cor Bosman (xs4all)
[squirrelmail.git] / src / addrbook_search_html.php
index a1604e6de2da0a84338d10846d0b471601d7c65f..49fd3b63aafdfb47e3aaaa0923b30d66ae9df94c 100644 (file)
@@ -168,6 +168,7 @@ if ($addrquery == '' || !empty($listall)) {
         $res = $abook->list_addr($backend);
 
         if (is_array($res)) {
+            usort($res,'alistcmp');
             addr_display_result($res, false);
         } else {
             echo '<P ALIGN=center><STRONG>' .
@@ -178,6 +179,7 @@ if ($addrquery == '' || !empty($listall)) {
 
     } else {
         $res = $abook->list_addr();
+        usort($res,'alistcmp');
         addr_display_result($res, true);
     }
     exit;