diff --git a/gosa-core/include/class_listingSortIterator.inc b/gosa-core/include/class_listingSortIterator.inc
index e656d98a9c1fcbee351d95eeb49abe8f1576ad69..7f46512e51c9ed003f086500b5f30eb1062e5915 100644 (file)
// 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;
}