From 85b1487a79ac9ed611dfcae17c4ff7a0437e152d Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 17 Aug 2009 15:53:30 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_departmentSortIterator.inc | 4 ++-- gosa-core/include/class_listingSortIterator.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.30.2