diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-01-26 14:21:32 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-01-27 14:23:47 +0100 |
commit | 2cea4d7b8d7440ef5e4d5ffea9b06e643b08e84c (patch) | |
tree | 345506d7465dafbfcd4f120b225832ee85ae3a2c /apps/files/lib | |
parent | 5044ed712f99eb300a9a23810410ba49f613a885 (diff) | |
download | nextcloud-server-2cea4d7b8d7440ef5e4d5ffea9b06e643b08e84c.tar.gz nextcloud-server-2cea4d7b8d7440ef5e4d5ffea9b06e643b08e84c.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.php | 6 |
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, |