Permalink
Browse files

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

  • Loading branch information...
1 parent f9a8571 commit 98f282f680e9737e8e49912a2f08a13d7dea8deb @FMCorz FMCorz committed Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filestorage/file_storage.php
@@ -284,7 +284,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 98f282f

Please sign in to comment.