diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-25 16:25:04 -0800 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2017-12-28 20:59:56 +0100 |
commit | 34f576f540e36eec70c997a7f29fafea9c0e24e1 (patch) | |
tree | eee6d11d3b0c861ca6c5a09bceb9e7473548b611 /Zotlabs | |
parent | 64a97d42ff473f3836947f83d0f3fdb8768a89b7 (diff) | |
download | volse-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
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Storage/Directory.php | 2 |
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), |