perf: remove unneeded sort in getFolderContentsById

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-05-07 17:40:19 +02:00
parent 92d196d0bc
commit 06c625f20c
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -218,8 +218,7 @@ class Cache implements ICache {
$query = $this->getQueryBuilder();
$query->selectFileCache()
->whereParent($fileId)
->whereStorageId($this->getNumericStorageId())
->orderBy('name', 'ASC');
->whereStorageId($this->getNumericStorageId());
if ($mimeTypeFilter !== null) {
$mimetype = $this->mimetypeLoader->getId($mimeTypeFilter);