diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-25 16:25:04 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-12-25 16:25:04 -0800 |
commit | 1aa9ce8fe5a7c386733fb8a8d534a647624cac39 (patch) | |
tree | 40d3be45a3c17096d07358a423ca8e26af0d4bdb | |
parent | 32dfa4e86879f70d0c0070e28661194c0997d106 (diff) | |
download | volse-hubzilla-1aa9ce8fe5a7c386733fb8a8d534a647624cac39.tar.gz volse-hubzilla-1aa9ce8fe5a7c386733fb8a8d534a647624cac39.tar.bz2 volse-hubzilla-1aa9ce8fe5a7c386733fb8a8d534a647624cac39.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.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), |