summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-25 16:08:35 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-25 16:08:35 +0100
commit0cfef83ed98951f852b07ce61dc10ee2e8266445 (patch)
tree161fcfa27eade1b10723d37aad4ee7c6ad5bbb19 /lib
parent03fd43a2396623516ec19352f45534a6dea38019 (diff)
downloadnextcloud-server-0cfef83ed98951f852b07ce61dc10ee2e8266445.tar.gz
nextcloud-server-0cfef83ed98951f852b07ce61dc10ee2e8266445.zip
sort output of getFolderContent by name
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php
index 6b93673097b..bc52f21d910 100644
--- a/lib/files/cache/cache.php
+++ b/lib/files/cache/cache.php
@@ -87,7 +87,7 @@ class Cache {
if ($fileId > -1) {
$query = \OC_DB::prepare(
'SELECT `fileid`, `storage`, `path`, `parent`, `name`, `mimetype`, `mimepart`, `size`, `mtime`, `encrypted`
- FROM `*PREFIX*filecache` WHERE parent = ? ORDER BY `fileid` ASC');
+ FROM `*PREFIX*filecache` WHERE parent = ? ORDER BY `name` ASC');
$result = $query->execute(array($fileId));
return $result->fetchAll();
} else {