summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8be0d00)
raw | patch | inline | side by side (parent: 8be0d00)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Aug 2009 15:53:30 +0000 (15:53 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Aug 2009 15:53:30 +0000 (15:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14081 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_departmentSortIterator.inc | patch | blob | history | |
gosa-core/include/class_listingSortIterator.inc | patch | blob | history |
diff --git a/gosa-core/include/class_departmentSortIterator.inc b/gosa-core/include/class_departmentSortIterator.inc
index 2a2863227c97a7475d6ba927db92d19fa067c02f..399085d5310411b4b09fdebb13045488fec1379a 100644 (file)
}
// 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 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;
}