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 committed by backportbot[bot]
parent d0c2d97202
commit 9334bc36b1

View file

@ -208,8 +208,7 @@ class Cache implements ICache {
$query = $this->getQueryBuilder();
$query->selectFileCache()
->whereParent($fileId)
->whereStorageId($this->getNumericStorageId())
->orderBy('name', 'ASC');
->whereStorageId($this->getNumericStorageId());
$metadataQuery = $query->selectMetadata();