From: cajus Date: Mon, 17 Aug 2009 15:53:30 +0000 (+0000) Subject: Maybe it's a good idea to maintain the index if we're using it later on ;-) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=85b1487a79ac9ed611dfcae17c4ff7a0437e152d;p=gosa.git Maybe it's a good idea to maintain the index if we're using it later on ;-) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14081 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_departmentSortIterator.inc b/gosa-core/include/class_departmentSortIterator.inc index 2a2863227..399085d53 100644 --- a/gosa-core/include/class_departmentSortIterator.inc +++ b/gosa-core/include/class_departmentSortIterator.inc @@ -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; } diff --git a/gosa-core/include/class_listingSortIterator.inc b/gosa-core/include/class_listingSortIterator.inc index e656d98a9..7f46512e5 100644 --- a/gosa-core/include/class_listingSortIterator.inc +++ b/gosa-core/include/class_listingSortIterator.inc @@ -62,12 +62,12 @@ class listingSortIterator implements Iterator { // Sort for attribute if ($attribute != "") { - usort($data, "attrSort"); + uasort($data, "attrSort"); } // Invert if direction is set if ($direction) { - $this->data= array_reverse($data); + $this->data= array_reverse($data, true); } else { $this->data= $data; }