aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-01-26 14:21:32 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-02-03 11:53:21 +0100
commit8b57f5d4bb1b2c35eb7161447120bb5bcf832eeb (patch)
treef099b31a2ebf7bf7bba8b2c5a9e2e938857863b8 /apps/files/lib
parente0f96bc1ac0641a79f2da237addca1cf35041f9e (diff)
downloadnextcloud-server-8b57f5d4bb1b2c35eb7161447120bb5bcf832eeb.tar.gz
nextcloud-server-8b57f5d4bb1b2c35eb7161447120bb5bcf832eeb.zip
fix(files): Consistent sorting for folders before files (user configurable)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Service/UserConfig.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/lib/Service/UserConfig.php b/apps/files/lib/Service/UserConfig.php
index 00569dc6aeb..b6755836b0f 100644
--- a/apps/files/lib/Service/UserConfig.php
+++ b/apps/files/lib/Service/UserConfig.php
@@ -48,6 +48,12 @@ class UserConfig {
'allowed' => [true, false],
],
[
+ // Whether to sort folders before files in the list or not
+ 'key' => 'sort_folders_first',
+ 'default' => true,
+ 'allowed' => [true, false],
+ ],
+ [
// Whether to show the files list in grid view or not
'key' => 'grid_view',
'default' => false,