diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index ff0fa97e02..e95638b426 100644 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -603,7 +603,7 @@ class DocumentManager { $document_folders[] = $row['path']; } - sort($document_folders, SORT_ASC); + sort($document_folders); //return results return $document_folders; } @@ -661,13 +661,13 @@ class DocumentManager if (is_array($visiblefolders) && is_array($invisiblefolders)) { $document_folders = array_diff($visiblefolders, $invisiblefolders); - sort($document_folders, SORT_ASC); + sort($document_folders); return $document_folders; } //only visible folders found elseif (is_array($visiblefolders)) { - sort($visiblefolders, SORT_ASC); + sort($visiblefolders); return $visiblefolders; } //no visible folders found @@ -1072,4 +1072,4 @@ class DocumentManager } //end class DocumentManager -?> \ No newline at end of file +?>