Browse Source

fix

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
c2506adc30
1 changed files with 3 additions and 0 deletions
  1. 3 0
      iOSClient/Data/NCDataSource.swift

+ 3 - 0
iOSClient/Data/NCDataSource.swift

@@ -97,6 +97,9 @@ class NCDataSource: NSObject {
             }
         } else {
             self.sectionsValue = self.sectionsValue.sorted {
+                if directoryOnTop && $0.lowercased() == "directory" {
+                    return true
+                }
                 if self.ascending {
                     return $0 < $1
                 } else {