Permalink
Browse files

MDL-34607 File API: Removed ordering by sortorder in area tree

  • Loading branch information...
FMCorz committed Sep 17, 2012
1 parent c366bea commit 7be6c09db583976c5402b8f21fe88774ebe72103
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filestorage/file_storage.php
@@ -443,7 +443,7 @@ public function get_area_files($contextid, $component, $filearea, $itemid = fals
*/
public function get_area_tree($contextid, $component, $filearea, $itemid) {
$result = array('dirname'=>'', 'dirfile'=>null, 'subdirs'=>array(), 'files'=>array());
- $files = $this->get_area_files($contextid, $component, $filearea, $itemid, "sortorder, itemid, filepath, filename", true);
+ $files = $this->get_area_files($contextid, $component, $filearea, $itemid, "itemid, filepath, filename", true);
// first create directory structure
foreach ($files as $hash=>$dir) {
if (!$dir->is_directory()) {

0 comments on commit 7be6c09

Please sign in to comment.