Sort folders alphabetically

This commit is contained in:
Aleksander Machniak 2022-11-04 12:25:14 +01:00
parent 114af8eb3c
commit f9e8f7f084

View file

@ -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 ?: [];