sorting of addressbook_search fixed, thanks to the patch of Cor Bosman (xs4all)
[squirrelmail.git] / src / addressbook.php
index 64baea9626746a916230b6c4a8a646a945ab05e8..550b430eded0605ccf19e649581caa0a2ad07698 100644 (file)
@@ -16,18 +16,6 @@ require_once('../functions/array.php');
 require_once('../functions/display_messages.php');
 require_once('../functions/addressbook.php');
 
-/* Sort array by the key "name" */
-function alistcmp($a,$b) {
-    if($a['backend'] > $b['backend']) {
-        return 1;
-    } else {
-        if($a['backend'] < $b['backend']) {
-            return -1;
-        }
-    }
-    return (strtolower($a['name']) > strtolower($b['name'])) ? 1 : -1;
-}
-
 /* Make an input field */
 function adressbook_inp_field($label, $field, $name, $size, $values, $add) {
     global $color;