Skip to content

Commit 9334bc3

Browse files
icewind1991backportbot[bot]
authored andcommitted
perf: remove unneeded sort in getFolderContentsById
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent d0c2d97 commit 9334bc3

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
@@ -208,8 +208,7 @@ public function getFolderContentsById($fileId) {
208208
$query = $this->getQueryBuilder();
209209
$query->selectFileCache()
210210
->whereParent($fileId)
211-
->whereStorageId($this->getNumericStorageId())
212-
->orderBy('name', 'ASC');
211+
->whereStorageId($this->getNumericStorageId());
213212

214213
$metadataQuery = $query->selectMetadata();
215214

0 commit comments

Comments
 (0)