Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 năm trước cách đây
mục cha
commit
9326f5385b
1 tập tin đã thay đổi với 9 bổ sung5 xóa
  1. 9 5
      iOSClient/Data/NCDataSource.swift

+ 9 - 5
iOSClient/Data/NCDataSource.swift

@@ -75,11 +75,15 @@ class NCDataSource: NSObject {
 
         self.sectionsValue = metadatasSource.map { getSectionValue(metadata: $0) }
         self.sectionsValue = Array(Set(self.sectionsValue))
-        self.sectionsValue = self.sectionsValue.sorted {
-            if self.ascending {
-                return $0 < $1
-            } else {
-                return $0 > $1
+        if let providers = self.providers {
+
+        } else {
+            self.sectionsValue = self.sectionsValue.sorted {
+                if self.ascending {
+                    return $0 < $1
+                } else {
+                    return $0 > $1
+                }
             }
         }
     }