Code

Updated list handling
[gosa.git] / gosa-core / include / class_departmentSortIterator.inc
index 2a2863227c97a7475d6ba927db92d19fa067c02f..399085d5310411b4b09fdebb13045488fec1379a 100644 (file)
@@ -50,11 +50,11 @@ class departmentSortIterator implements Iterator {
     }
 
     // Sort for attribute
-    usort($data, "depSort");
+    uasort($data, "depSort");
 
     // Invert if direction is set
     if ($direction) {
-      $this->data= array_reverse($data);
+      $this->data= array_reverse($data, true);
     } else {
       $this->data= $data;
     }