Sort folders alphabetically
This commit is contained in:
parent
114af8eb3c
commit
f9e8f7f084
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ class kolab_storage_dav
|
|||
|
||||
$folders[$idx] = new kolab_storage_dav_folder($this->dav, $folder, $type);
|
||||
}
|
||||
|
||||
|
||||
usort($folders, function ($a, $b) {
|
||||
return strcoll($a->get_foldername(), $b->get_foldername());
|
||||
});
|
||||
}
|
||||
|
||||
return $folders ?: [];
|
||||
|
|
Loading…
Add table
Reference in a new issue