Skip to content

Commit

Permalink
Merge branch 'MDL-40086-master' of git://github.com/FMCorz/moodle
Browse files Browse the repository at this point in the history
Conflicts:
	lib/filestorage/file_storage.php
  • Loading branch information
Sam Hemelryk committed Aug 6, 2013
2 parents 774b108 + bc42e97 commit 823c0c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/filestorage/file_storage.php
Expand Up @@ -647,8 +647,10 @@ public function get_area_tree($contextid, $component, $filearea, $itemid) {
protected function sort_area_tree($tree) {
foreach ($tree as $key => &$value) {
if ($key == 'subdirs') {
$value = $this->sort_area_tree($value);
core_collator::ksort($value, core_collator::SORT_NATURAL);
foreach ($value as $subdirname => &$subtree) {
$subtree = $this->sort_area_tree($subtree);
}
} else if ($key == 'files') {
core_collator::ksort($value, core_collator::SORT_NATURAL);
}
Expand Down

0 comments on commit 823c0c8

Please sign in to comment.