Skip to content

Commit 06c625f

Browse files
committed
perf: remove unneeded sort in getFolderContentsById
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 92d196d commit 06c625f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/private/Files/Cache/Cache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ public function getFolderContentsById(int $fileId, ?string $mimeTypeFilter = nul
218218
$query = $this->getQueryBuilder();
219219
$query->selectFileCache()
220220
->whereParent($fileId)
221-
->whereStorageId($this->getNumericStorageId())
222-
->orderBy('name', 'ASC');
221+
->whereStorageId($this->getNumericStorageId());
223222

224223
if ($mimeTypeFilter !== null) {
225224
$mimetype = $this->mimetypeLoader->getId($mimeTypeFilter);

0 commit comments

Comments
 (0)