aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-25 16:25:04 -0800
committerMario <mario@mariovavti.com>2017-12-28 20:59:56 +0100
commit34f576f540e36eec70c997a7f29fafea9c0e24e1 (patch)
treeeee6d11d3b0c861ca6c5a09bceb9e7473548b611
parent64a97d42ff473f3836947f83d0f3fdb8768a89b7 (diff)
downloadvolse-hubzilla-34f576f540e36eec70c997a7f29fafea9c0e24e1.tar.gz
volse-hubzilla-34f576f540e36eec70c997a7f29fafea9c0e24e1.tar.bz2
volse-hubzilla-34f576f540e36eec70c997a7f29fafea9c0e24e1.zip
sort cloud directory by 1. is_dir and 2. name until we can figure out a way to request different sort orders
-rw-r--r--Zotlabs/Storage/Directory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Storage/Directory.php b/Zotlabs/Storage/Directory.php
index 63ff4341c..510d463c1 100644
--- a/Zotlabs/Storage/Directory.php
+++ b/Zotlabs/Storage/Directory.php
@@ -691,7 +691,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota, DAV\IMo
}
$prefix = '';
- $suffix = '';
+ $suffix = ' order by is_dir desc, filename asc ';
$r = q("select $prefix id, uid, hash, filename, filetype, filesize, revision, folder, flags, is_dir, created, edited from attach where folder = '%s' and uid = %d $perms $suffix",
dbesc($folder),